Skip to content

Commit

Permalink
CI: automatically approve & merge Dependabot PRs (#1720)
Browse files Browse the repository at this point in the history
Co-authored-by: Davor Runje <[email protected]>
  • Loading branch information
dolfinus and davorrunje authored Aug 26, 2024
1 parent a689896 commit 52ef17a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dependabot_automerge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Dependabot automerge

on:
pull_request_target:

jobs:
automerge:
name: Enable pull request automerge
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'

steps:
- uses: alexwilson/[email protected]
with:
github-token: ${{ secrets.AUTOMERGE_TOKEN }}
merge-method: REBASE

autoapprove:
name: Automatically approve pull request
needs: [automerge]
runs-on: ubuntu-latest
if: github.event.pull_request.user.login == 'dependabot[bot]'

steps:
- uses: hmarr/auto-approve-action@v4
with:
github-token: ${{ secrets.AUTOMERGE_TOKEN }}

0 comments on commit 52ef17a

Please sign in to comment.