Skip to content

Commit 357b0d1

Browse files
authored
Add step to approve Dependabot pull request
1 parent 45cc3c3 commit 357b0d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/dependabot-merge.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ jobs:
1515
uses: dependabot/fetch-metadata@v2
1616
with:
1717
github-token: "${{ secrets.GITHUB_TOKEN }}"
18+
- name: Approve a PR
19+
run: gh pr review --approve "$PR_URL"
20+
env:
21+
PR_URL: ${{github.event.pull_request.html_url}}
22+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
1823
- name: Enable auto-merge for Dependabot PRs
1924
run: gh pr merge --auto --merge "$PR_URL"
2025
env:

0 commit comments

Comments
 (0)