Skip to content

[pre-commit.ci] pre-commit autoupdate #1

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #1

Workflow file for this run

name: Auto-approve / -merge for Dependabot and Precommit CI
on: pull_request
jobs:
auto_merge:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.actor == 'dependabot[bot]' || github.actor == 'pre-commit-ci[bot]' }}
steps:
- name: Approve a PR
run: gh pr review --approve "$PR_URL"
- name: Enable auto-merge for Dependabot or Precommit CI PRs
run: gh pr merge --auto --squash "$PR_URL"