Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit c31875f

Browse files
committed
ci: Use CFN-CI user as approver for automerge
1 parent 050ad87 commit c31875f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/automerge.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Auto-merge dependency PRs
2-
on: pull_request
2+
on: pull_request_target
33

44
permissions:
55
pull-requests: write
@@ -11,12 +11,12 @@ jobs:
1111
if: github.actor == 'dependabot[bot]' || github.actor == 'CFN-CI'
1212
steps:
1313
- name: Approve a PR
14-
run: gh pr review --approve "$PR_URL"
15-
env:
16-
PR_URL: ${{github.event.pull_request.html_url}}
17-
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
14+
uses: hmarr/auto-approve-action@v4
15+
with:
16+
review-message: "Auto approved automated PR"
17+
github-token: ${{secrets.CFN_CI_PAT}}
1818
- name: Enable auto-merge for Dependabot PRs
19-
run: gh pr merge --auto --merge "$PR_URL"
19+
run: gh pr merge --auto --rebase "$PR_URL"
2020
env:
2121
PR_URL: ${{github.event.pull_request.html_url}}
2222
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)