Skip to content

Commit 9b62710

Browse files
committed
allow dependabot to approve itself after bumping commits
1 parent 1e41831 commit 9b62710

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/dependabot-automerge.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
uses: ./.github/workflows/pull-from-bazel-build.yml
4646
secrets: inherit
4747

48+
approve-pr:
49+
needs: [check-dependabot, generate-docs]
50+
if: needs.check-dependabot.outputs.should_process == 'true'
51+
runs-on: ubuntu-latest
52+
steps:
53+
- name: Approve pull request
54+
run: gh pr review --approve "${{ github.event.pull_request.html_url }}"
55+
env:
56+
GH_TOKEN: ${{ secrets.GH_AUTOMERGE_PAT }}
57+
4858
# Auto-merge after docs are generated
4959
enable-automerge:
5060
needs: [check-dependabot, generate-docs]

0 commit comments

Comments
 (0)