Skip to content

Update pre-commit hooks #317

Update pre-commit hooks

Update pre-commit hooks #317

name: Update pre-commit hooks
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
auto-update:
name: Update pre-commit hooks
if: ${{ github.repository == 'vacanza/python-holidays' }}
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.1.0
with:
python-version: '3.12'
- uses: browniebroke/pre-commit-autoupdate-action@v1.0.0
- uses: peter-evans/create-pull-request@v6.1.0
with:
base: dev
body: Update pre-commit hooks to their latest versions.
branch: update-pre-commit-hooks
commit-message: 'chore: Update pre-commit hooks'
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
delete-branch: true
title: Update pre-commit hooks
token: ${{ github.token }}