Merge pull request #2715 from Owain94/actions-2606

actions: Check actor before running auto merge and cleanup
This commit is contained in:
Owain van Brakel
2020-06-26 01:55:56 +02:00
committed by GitHub

View File

@@ -12,6 +12,7 @@ jobs:
steps:
- name: automerge
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
uses: pascalgn/automerge-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -30,6 +31,7 @@ jobs:
id: extract_branch
- name: Delete PR head branch
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
uses: dawidd6/action-delete-branch@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}