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