actions: Automatically merge PRs from the bot
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -74,5 +74,17 @@ jobs:
|
|||||||
- name: Approve pull request
|
- name: Approve pull request
|
||||||
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
||||||
uses: hmarr/auto-approve-action@master
|
uses: hmarr/auto-approve-action@master
|
||||||
|
with:
|
||||||
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
|
merge:
|
||||||
|
name: Merge
|
||||||
|
needs: approve
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Merge pull request
|
||||||
|
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
|
||||||
|
uses: managedkaos/merge-pull-request@master
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
Reference in New Issue
Block a user