Skip to content

Commit 05dd47f

Browse files
authored
chore: Enable auto-merge before issuing approvals
1 parent 3ffd075 commit 05dd47f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/auto-approve.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010
if: github.event.pull_request.user.login == 'dependabot[bot]' && contains(github.event.pull_request.labels.*.name, 'dependencies')
1111
steps:
12-
- uses: hmarr/auto-approve-action@bca9db08da72b576ae3273e776e7ccf3f0a36e12
13-
with:
14-
github-token: "${{ secrets.PR_GH_TOKEN }}"
12+
13+
# Enable auto-merge *before* issuing an approval.
1514
- name: Enable Github Automerge
1615
uses: alexwilson/enable-github-automerge-action@main
1716
with:
1817
github-token: "${{ secrets.PR_GH_TOKEN }}"
18+
19+
# We "trust" dependabot updates (this still requires all other checks to pass!)
20+
- uses: hmarr/auto-approve-action@bca9db08da72b576ae3273e776e7ccf3f0a36e12
21+
with:
22+
github-token: "${{ secrets.PR_GH_TOKEN }}"

0 commit comments

Comments
 (0)