Pre-commit Auto-update #4
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 Auto-update | |
| on: | |
| schedule: | |
| # Run every Monday at 9am UTC | |
| - cron: "0 9 * * 1" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| auto-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install pre-commit | |
| run: pip install pre-commit | |
| - name: Run pre-commit autoupdate | |
| run: pre-commit autoupdate | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: chore/pre-commit-autoupdate | |
| delete-branch: true | |
| title: "chore(deps): update pre-commit hooks" | |
| body: | | |
| ## Pre-commit Hook Updates | |
| This PR updates pre-commit hooks to their latest versions. | |
| Auto-generated by GitHub Actions. | |
| labels: | | |
| dependencies | |
| pre-commit | |
| automerge | |
| commit-message: "chore(deps): update pre-commit hooks" |