File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 5
5
- cron : ' 0 0 * * *'
6
6
workflow_dispatch :
7
7
8
+ env :
9
+ FORCE_COLOR : 1
10
+
8
11
jobs :
9
12
auto-update :
10
13
name : Update pre-commit hooks
@@ -16,11 +19,26 @@ jobs:
16
19
steps :
17
20
- uses : actions/checkout@v4
18
21
19
- - uses : actions/setup-python@v5.1.0
22
+ - uses : actions/setup-python@v5
20
23
with :
24
+ cache : pip
21
25
python-version : ' 3.12'
22
26
23
- -
uses :
browniebroke/[email protected]
27
+ - name : Install dependencies
28
+ run : |
29
+ python -m pip install pre-commit
30
+
31
+ - name : Use pre-commit environment cache
32
+ uses : actions/cache@v3
33
+ with :
34
+ key : ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
35
+ path : ~/.cache/pre-commit
36
+ restore-keys : ${{ runner.os }}-pre-commit-
37
+
38
+ - name : Run pre-commit automatic update
39
+ run : |
40
+ pre-commit autoupdate
41
+ pre-commit run --all-files
24
42
25
43
-
uses :
peter-evans/[email protected]
26
44
with :
You can’t perform that action at this time.
0 commit comments