Skip to content

Commit 61fdbe2

Browse files
authored
Merge pull request #11 from jpthiele/precommit-autoupdate
[CI] add update check for pre-commit hooks
2 parents e491f74 + 98e1297 commit 61fdbe2

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
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 * * *'
6+
7+
jobs:
8+
auto-update:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-python@v5
13+
- name: install pre-commit
14+
run: pip install pre-commit
15+
- name: run autoupdate
16+
run: pre-commit autoupdate
17+
- name: create PR
18+
uses: peter-evans/create-pull-request@v7
19+
with:
20+
token: ${{ secrets.GITHUB_TOKEN }}
21+
branch: update/pre-commit-autoupdate
22+
title: 'Auto-update pre-commit hooks'
23+
commit-message: '[Dependencies] auto update pre-commit hook'
24+
labels: dependencies
25+

0 commit comments

Comments
 (0)