Skip to content

Commit 3f44061

Browse files
authored
Add automerge workflow for dependabot PRs
1 parent e031444 commit 3f44061

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/automerge.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Enable automerge on dependabot PRs
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
automerge:
8+
name: Enable automerge on dependabot PRs
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
repository-projects: write
14+
if: github.actor == 'dependabot[bot]'
15+
steps:
16+
- uses: actions/checkout@v6
17+
- run: gh pr merge ${{ github.event.pull_request.html_url }} --auto --squash
18+
- run: gh pr review ${{ github.event.pull_request.html_url }} --approve
19+
env:
20+
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)