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:
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user