Create merge.yml
This commit is contained in:
parent
b23fab300b
commit
05d1fcec98
1 changed files with 22 additions and 0 deletions
22
.github/workflows/merge.yml
vendored
Normal file
22
.github/workflows/merge.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
name: auto-merge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
merge:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.actor == 'twoneis' }} && ${{ github.event.pull_request.title == 'flake.lock: Update' }}
|
||||
|
||||
steps:
|
||||
- name: Approve PR
|
||||
run: gh pr review --approve "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
||||
- name: Enable auto-merge for PR
|
||||
run: gh pr merge --auto --rebase "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{ github.event.pull_request.html_url }}
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
|
Loading…
Add table
Add a link
Reference in a new issue