Skip to content

Commit 348baf5

Browse files
authored
Add automerge workflow for Dependabot PRs
1 parent 93f93a1 commit 348baf5

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/automerge.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: automerge
2+
on: pull_request
3+
4+
permissions:
5+
contents: write
6+
pull-requests: write
7+
8+
jobs:
9+
github-actions:
10+
runs-on: ubuntu-latest
11+
if: github.actor == 'dependabot[bot]'
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v5
15+
with:
16+
show-progress: ''
17+
- name: Merge PR
18+
run: gh pr merge --auto --squash "$PR_URL"
19+
env:
20+
PR_URL: ${{github.event.pull_request.html_url}}
21+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)