Skip to content

Pre-commit auto-update #1

Pre-commit auto-update

Pre-commit auto-update #1

name: Pre-commit auto-update
on:
schedule:
- cron: "0 0 1 * *"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
pre-commit-auto-update:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12"
- 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@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: bot/pre-commit-autoupdate
delete-branch: true
title: Auto-update pre-commit hooks
commit-message: Auto-update pre-commit hooks
body: |
Update tool versions in pre-commit configs to latest version.
labels: |
automated
dependencies