Skip to content

Commit

Permalink
actions: Check actor before running auto merge and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Owain94 committed Jun 25, 2020
1 parent 3011169 commit 2f48bb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 2f48bb4

Please sign in to comment.