Skip to content

Commit

Permalink
Adds opensearch trigger bot to discerning merger list to allow automa…
Browse files Browse the repository at this point in the history
…tic merges (opensearch-project#3474)

Signed-off-by: Darshit Chanpura <[email protected]>
(cherry picked from commit 999339e)
  • Loading branch information
DarshitChanpura committed Oct 6, 2023
1 parent 9438fab commit f37e6cb
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/automatic-merges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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[bot]
opensearch-trigger-bot[bot]
allowed-files: |
build.gradle
.github/workflows/*.yml

0 comments on commit f37e6cb

Please sign in to comment.