Skip to content

Workflow file for this run

name: Pre-commit updates auto-merge
on: pull_request
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-latest
if:
${{ github.event_name == 'pull_request' &&
github.event.pull_request.user.login == 'pre-commit-ci[bot]'}}
steps:
- name: Auto-merge PR
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}