We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5929816 commit 04a2f4bCopy full SHA for 04a2f4b
1 file changed
.github/workflows/dependabot-auto-merge.yml
@@ -0,0 +1,34 @@
1
+name: Dependabot Auto-Merge
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
8
+permissions:
9
+ contents: write
10
+ pull-requests: write
11
12
+jobs:
13
+ dependabot:
14
+ runs-on: ubuntu-latest
15
+ if: github.actor == 'dependabot[bot]'
16
+ steps:
17
+ - name: Dependabot metadata
18
+ id: metadata
19
+ uses: dependabot/fetch-metadata@v2
20
+ with:
21
+ github-token: "${{ secrets.GITHUB_TOKEN }}"
22
23
+ - name: Approve PR
24
+ run: gh pr review --approve "$PR_URL"
25
+ env:
26
+ PR_URL: ${{ github.event.pull_request.html_url }}
27
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
29
+ - name: Enable auto-merge for Dependabot PRs
30
+ run: gh pr merge --auto --squash "$PR_URL"
31
32
33
34
0 commit comments