actions: Check actor before running auto merge and cleanup
This commit is contained in:
2
.github/workflows/merge.yml
vendored
2
.github/workflows/merge.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user