From 5f885b3351dfc22791f47b75645b7eab65c354c4 Mon Sep 17 00:00:00 2001 From: Rail Aliiev Date: Wed, 15 May 2024 14:30:22 -0400 Subject: [PATCH] Automerge version bumps This change marks PRs created by `cockroach-teamcity` ready to be merged after all checks are passed. --- .github/workflows/automerge.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/automerge.yaml diff --git a/.github/workflows/automerge.yaml b/.github/workflows/automerge.yaml new file mode 100644 index 0000000..2f737c2 --- /dev/null +++ b/.github/workflows/automerge.yaml @@ -0,0 +1,26 @@ +name: Automerge version bumps + +on: + pull_request: + branches: [ master ] + paths: + - "!**" + - "Formula/*" + +permissions: + contents: write + pull-requests: write + +jobs: + automerge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'cockroach-teamcity' }} + steps: + - name: Approve a PR + run: gh pr review --approve "${{github.event.pull_request.html_url}}" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Enable auto-merge + run: gh pr merge --auto --merge "${{github.event.pull_request.html_url}}" + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}