Skip to content

Commit

Permalink
ci: auto-merge dependency PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmoehl committed Mar 11, 2024
1 parent 20736a1 commit 763f3fb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto-merge dependency PRs
on: pull_request_target

permissions:
pull-requests: write
contents: write

jobs:
dependencies:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Approve
run: gh pr review "${{ github.event.pull_request.html_url }}" --approve --body "Auto-approving dependency bump."
env:
GH_TOKEN: ${{ secrets.CFN_CI_PAT }}
- name: Enable auto-merge
run: gh pr merge "${{ github.event.pull_request.html_url }}" --auto --rebase
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 763f3fb

Please sign in to comment.