| 1 |
name: Pre-commit auto-update |
| 2 |
on: |
| 3 |
schedule: |
| 4 |
# Run on mondays at midnight |
| 5 |
- cron: "0 0 * * 1" |
| 6 |
|
| 7 |
jobs: |
| 8 |
auto-update: |
| 9 |
runs-on: ubuntu-latest |
| 10 |
steps: |
| 11 |
- uses: actions/[email protected] |
| 12 |
|
| 13 |
- name: Set up Python |
| 14 |
uses: actions/[email protected] |
| 15 |
with: |
| 16 |
python-version: "3.x" |
| 17 |
|
| 18 |
- name: Install pre-commit |
| 19 |
run: pip install pre-commit |
| 20 |
|
| 21 |
- name: Run pre-commit autoupdate |
| 22 |
run: pre-commit autoupdate |
| 23 |
|
| 24 |
- name: Create Pull Request |
| 25 |
uses: peter-evans/[email protected] |
| 26 |
with: |
| 27 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 28 |
branch: update/pre-commit-autoupdate |
| 29 |
title: Auto-update pre-commit hooks |
| 30 |
commit-message: Auto-update pre-commit hooks |
| 31 |
body: | |
| 32 |
Update versions of hooks in pre-commit |
| 33 |
configs to latest version |
| 34 |
labels: dependencies |