We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6b8f45 commit 5f4fe96Copy full SHA for 5f4fe96
.github/workflows/dependabot-merge.yml
@@ -1,7 +1,8 @@
1
-name: Dependabot auto-approve
+name: Dependabot auto-merge
2
on: pull_request
3
4
permissions:
5
+ contents: write
6
pull-requests: write
7
8
jobs:
@@ -14,8 +15,9 @@ jobs:
14
15
uses: dependabot/fetch-metadata@v2
16
with:
17
github-token: "${{ secrets.GITHUB_TOKEN }}"
- - name: Approve a PR
18
- run: gh pr review --approve "$PR_URL"
+ - name: Enable auto-merge for Dependabot PRs
19
+ if: contains(steps.metadata.outputs.dependency-names, 'my-dependency') && steps.metadata.outputs.update-type == 'version-update:semver-patch'
20
+ run: gh pr merge --auto --merge "$PR_URL"
21
env:
22
PR_URL: ${{github.event.pull_request.html_url}}
23
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
0 commit comments