Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/pre-commit-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# from https://github.com/browniebroke/pre-commit-autoupdate-action
name: Pre-commit auto-update
on:
# every day at midnight
schedule:
- cron: "0 16 * * 3"
# on demand
workflow_dispatch:

jobs:
auto-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5

- uses: browniebroke/pre-commit-autoupdate-action@v1.0.0

- uses: peter-evans/create-pull-request@v6
if: always()
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update/pre-commit-hooks
delete-branch: true
labels: dependencies
title: "Update pre-commit hooks"
commit-message: "chore: update pre-commit hooks"
body: Update versions of pre-commit hooks to the latest version.
add-paths: ".pre-commit-config.yaml"