Skip to content

Commit

Permalink
ci: Auto-merge pre-commit-ci PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Mar 26, 2024
1 parent d68c67e commit 6003ef9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/automerge.yml
Expand Up @@ -23,3 +23,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}
precommit:
if: ${{ github.actor == 'pre-commit-ci[bot]' }}
runs-on: ubuntu-latest
steps:
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr review --approve ${{ github.event.pull_request.html_url }}
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --auto --squash ${{ github.event.pull_request.html_url }}

0 comments on commit 6003ef9

Please sign in to comment.