Skip to content

Pre-commit auto-update #57

Pre-commit auto-update

Pre-commit auto-update #57

name: Pre-commit auto-update
on:
schedule:
- cron: '0 0 * * 1' # Weekly on Monday at midnight UTC
workflow_dispatch:
jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: staging
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install and update pre-commit
run: |
pip install pre-commit
pre-commit autoupdate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
commit-message: 'chore: update pre-commit hooks'
title: 'chore: update pre-commit hooks'
body: |
Auto-generated PR to update pre-commit hook versions.
Please review the changes and merge if everything looks good.
Updated by GitHub Actions on {{ date }}.
branch: update-pre-commit-hooks
base: staging