-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: automatically approve & merge Dependabot PRs (#1720)
Co-authored-by: Davor Runje <[email protected]>
- Loading branch information
1 parent
a689896
commit 52ef17a
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |