Skip to content

Commit 43c0c83

Browse files
committed
Add CI workflow to auto-update pre-commit hooks
1 parent 7f105c0 commit 43c0c83

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pre-commit auto-update
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * 1 # midnight every Monday
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
auto-update:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-python@v5
18+
- uses: browniebroke/pre-commit-autoupdate-action@1
19+
- uses: peter-evans/create-pull-request@v7
20+
with:
21+
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }}
22+
branch: update/pre-commit-hooks
23+
title: Update pre-commit hooks
24+
commit-message: "chore: update pre-commit hooks"
25+
body: Update versions of pre-commit hooks to latest version.

0 commit comments

Comments
 (0)