Pre-commit auto-update #2
This file contains 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: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 1 * *" # Every 1st of the month at 00:00 UTC | |
permissions: write-all | |
jobs: | |
auto-update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: pre-commit install autoupdate | |
run: | | |
pip install pre-commit | |
pre-commit autoupdate | |
- name: Commit and push changes | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: update-pre-commit-hooks | |
title: 'Update pre-commit hooks' | |
commit-message: 'Update pre-commit hooks' | |
body: | | |
Update versions of pre-commit hooks to latest versions. |