Skip to content

Commit 64f7cdc

Browse files
authored
allow dependabot to approve itself after bumping commits (#126)
1 parent 64a141d commit 64f7cdc

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ updates:
88
timezone: "America/Los_Angeles"
99
open-pull-requests-limit: 3
1010
rebase-strategy: auto
11+
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
# Check for updates to GitHub Actions every day
16+
interval: "daily"
17+
open-pull-requests-limit: 3
18+
rebase-strategy: auto

.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)