Fix PR auto-merge workflow
This commit is contained in:
parent
51ba66b824
commit
313f5c6021
1 changed files with 7 additions and 6 deletions
13
.github/workflows/auto-merge.yml
vendored
13
.github/workflows/auto-merge.yml
vendored
|
@ -1,16 +1,17 @@
|
|||
name: Enable Auto Merge
|
||||
on: pull_request
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
- edited
|
||||
|
||||
jobs:
|
||||
auto-merge:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.actor == 'wbrawner' || github.actor == 'dependabot[bot]' }}
|
||||
steps:
|
||||
- name: Enable auto-merge for Dependabot PRs
|
||||
- name: Enable auto-merge
|
||||
run: gh pr merge --auto --rebase "$PR_URL"
|
||||
env:
|
||||
PR_URL: ${{github.event.pull_request.html_url}}
|
||||
|
|
Loading…
Reference in a new issue