actions: Check actor before running auto merge and cleanup

This commit is contained in:
Owain van Brakel
2020-06-26 01:39:24 +02:00
parent 3011169bd8
commit 2f48bb4c0f

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 }}