We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e491f74 + 98e1297 commit 61fdbe2Copy full SHA for 61fdbe2
.github/workflows/pre-commit-autoupdate.yml
@@ -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