| 1 |
name: Pre-commit auto-update |
| 2 |
|
| 3 |
on: |
| 4 |
|
| 5 |
schedule: |
| 6 |
- cron: "0 0 1 * *" |
| 7 |
|
| 8 |
workflow_dispatch: |
| 9 |
|
| 10 |
jobs: |
| 11 |
auto-update: |
| 12 |
runs-on: ubuntu-latest |
| 13 |
steps: |
| 14 |
- uses: actions/checkout@v4 |
| 15 |
- uses: actions/setup-python@v4 |
| 16 |
with: |
| 17 |
python-version: '3.x' |
| 18 |
- uses: browniebroke/pre-commit-autoupdate-action@main |
| 19 |
- uses: peter-evans/create-pull-request@v5 |
| 20 |
with: |
| 21 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 22 |
branch: update/pre-commit-hooks |
| 23 |
title: Update pre-commit hooks |
| 24 |
commit-message: "Update pre-commit hooks." |
| 25 |
body: Update versions of pre-commit hooks to latest version. |