Skip to content

Commit

Permalink
[Backport 2.x] Allow for automatic merging of dependabot changes afte…
Browse files Browse the repository at this point in the history
…r checks pass (#3409)

Backport ab891d0 from #3408.

Signed-off-by: Peter Nied <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 19c6a9d commit 36bd1b0
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/automatic-merges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: automatic-merges

on:
workflow_run:
workflows:
- CI
- Plugin Install
- Code Hygiene
types: completed

jobs:
automatic-merge-version-bumps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- id: find-triggering-pr
uses: peternied/find-triggering-pr@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: peternied/discerning-merger@v1
if: steps.find-triggering-pr.outputs.pr-number != null
with:
token: ${{ secrets.GITHUB_TOKEN }}
pull-request-number: ${{ steps.find-triggering-pr.outputs.pr-number }}
allowed-authors: |
dependabot%5Bbot%5D
allowed-files: |
build.gradle
.github/workflows/*.yml

0 comments on commit 36bd1b0

Please sign in to comment.