We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e62de8d commit 54638e1Copy full SHA for 54638e1
.github/workflows/dependabot-automerge.yml
@@ -0,0 +1,33 @@
1
+name: Auto-merge Dependabot PRs
2
+
3
+on:
4
+ pull_request:
5
+ types: [opened, synchronize, reopened]
6
7
+permissions:
8
+ contents: write
9
+ pull-requests: write
10
11
+jobs:
12
+ dependabot:
13
+ runs-on: ubuntu-latest
14
+ if: github.actor == 'dependabot[bot]'
15
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19
20
+ - name: Approve PR
21
+ run: |
22
+ gh pr review --approve "${{ github.event.pull_request.number }}"
23
+ env:
24
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25
26
+ - name: Enable auto-merge
27
28
+ gh pr merge \
29
+ --squash \
30
+ --auto \
31
+ "${{ github.event.pull_request.number }}"
32
33
0 commit comments