Pre-commit Hook Autoupdate #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Pre-commit Hook Autoupdate | |
| on: | |
| schedule: | |
| - cron: '23 13 * * 1' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| autoupdate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| - name: Sync development dependencies | |
| run: uv sync --dev | |
| - name: Update pre-commit hook revisions | |
| run: uv run pre-commit autoupdate | |
| - name: Create pull request for hook updates | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| branch: bot/pre-commit-autoupdate | |
| delete-branch: true | |
| commit-message: 'chore: autoupdate pre-commit hooks' | |
| title: 'chore: autoupdate pre-commit hooks' | |
| body: | | |
| Automated weekly update of `.pre-commit-config.yaml` hook revisions. | |
| Generated by the Pre-commit Hook Autoupdate workflow. | |
| labels: | | |
| chore | |
| add-paths: | | |
| .pre-commit-config.yaml |