From f37e6cbd043a43921827e2549094912801b4c157 Mon Sep 17 00:00:00 2001 From: Darshit Chanpura <35282393+DarshitChanpura@users.noreply.github.com> Date: Fri, 6 Oct 2023 03:14:59 -0400 Subject: [PATCH] Adds opensearch trigger bot to discerning merger list to allow automatic merges (#3474) Signed-off-by: Darshit Chanpura (cherry picked from commit 999339e7ea3043f6be9342685b7e7c70b5dd55ae) --- .github/workflows/automatic-merges.yml | 32 ++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/automatic-merges.yml diff --git a/.github/workflows/automatic-merges.yml b/.github/workflows/automatic-merges.yml new file mode 100644 index 0000000000..acc3b90182 --- /dev/null +++ b/.github/workflows/automatic-merges.yml @@ -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