Skip to content

Commit

Permalink
Automerge version bumps
Browse files Browse the repository at this point in the history
This change marks PRs created by `cockroach-teamcity` ready to be merged
after all checks are passed.
  • Loading branch information
rail committed May 15, 2024
1 parent 94c7d13 commit 5f885b3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/automerge.yaml
Original file line number Diff line number Diff line change
@@ -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}}

0 comments on commit 5f885b3

Please sign in to comment.