File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -10,28 +10,20 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
jobs :
13
- # Run "pre-commit run --all-files"
13
+ # Run "pre-commit run --all-files --hook-stage=manual "
14
14
pre-commit :
15
15
name : Run pre-commit hook
16
-
17
16
runs-on : ubuntu-latest
18
- timeout-minutes : 2
19
-
20
- env :
21
- PYTHON_VERSION : 3.8
22
-
17
+ timeout-minutes : 5
23
18
steps :
24
19
- name : Checkout
25
20
uses : actions/checkout@v2
26
-
27
- - name : Set up Python ${{ env.PYTHON_VERSION }}
28
- uses : actions/setup-python@v2
29
- with :
30
- python-version : ${{ env.PYTHON_VERSION }}
31
-
21
+ - name : Set up Python
22
+ uses : actions/setup-python@v3
32
23
- name : Run pre-commit
33
24
uses :
pre-commit/[email protected]
34
-
25
+ with :
26
+ extra_args : --all-files --hook-stage=manual
35
27
- name : Help message if pre-commit fail
36
28
if : ${{ failure() }}
37
29
run : |
You can’t perform that action at this time.
0 commit comments