We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac279b commit 16c2db1Copy full SHA for 16c2db1
.github/workflows/auto-merge-dependabot.yml
@@ -0,0 +1,25 @@
1
+name: Auto-merge Dependabot PRs
2
+
3
+on:
4
+ pull_request:
5
6
+permissions:
7
+ contents: write
8
+ pull-requests: write
9
10
+jobs:
11
+ auto-merge:
12
+ if: github.actor == 'dependabot[bot]'
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - name: Approve PR
16
+ run: gh pr review --approve "$PR_URL"
17
+ env:
18
+ PR_URL: ${{ github.event.pull_request.html_url }}
19
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20
21
+ - name: Enable auto-merge
22
+ run: gh pr merge --auto --merge "$PR_URL"
23
24
25
0 commit comments