@@ -13,20 +13,29 @@ jobs:
13
13
pre-commit :
14
14
runs-on : ubuntu-20.04
15
15
steps :
16
- - uses : actions/checkout@v2
17
- - uses : actions/setup-python@v2
16
+ - uses : actions/checkout@v4
17
+ - uses : actions/setup-python@v5
18
18
with :
19
19
python-version : " 3.6"
20
20
- name : Get python version
21
21
run : echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22
- - uses : actions/cache@v1
22
+ - uses : actions/cache@v4
23
23
with :
24
24
path : ~/.cache/pre-commit
25
25
key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
26
26
- name : Install pre-commit
27
27
run : pip install pre-commit
28
28
- name : Run pre-commit
29
29
run : pre-commit run --all-files --show-diff-on-failure --color=always
30
+ env :
31
+ # Consider valid a PR that changes README fragments but doesn't
32
+ # change the README.rst file itself. It's not really a problem
33
+ # because the bot will update it anyway after merge. This way, we
34
+ # lower the barrier for functional contributors that want to fix the
35
+ # readme fragments, while still letting developers get README
36
+ # auto-generated (which also helps functionals when using runboat).
37
+ # DOCS https://pre-commit.com/#temporarily-disabling-hooks
38
+ SKIP : oca-gen-addon-readme
30
39
- name : Check that all files generated by pre-commit are in git
31
40
run : |
32
41
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
0 commit comments