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

Update automerge.yml #198

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Auto-merge dependency PRs
on: pull_request
name: Dependabot auto-approve
on: pull_request_target

permissions:
pull-requests: write
Expand All @@ -11,12 +11,12 @@ jobs:
if: github.actor == 'dependabot[bot]' || github.actor == 'CFN-CI'
steps:
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
uses: hmarr/auto-approve-action@v4
with:
review-message: "Auto approved automated PR"
github-token: ${{secrets.CFN_CI_PAT}}
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --merge "$PR_URL"
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Loading