@@ -13,20 +13,29 @@ jobs:
1313 pre-commit :
1414 runs-on : ubuntu-20.04
1515 steps :
16- - uses : actions/checkout@v2
17- - uses : actions/setup-python@v2
16+ - uses : actions/checkout@v4
17+ - uses : actions/setup-python@v5
1818 with :
1919 python-version : " 3.8"
2020 - name : Get python version
2121 run : echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
22- - uses : actions/cache@v1
22+ - uses : actions/cache@v4
2323 with :
2424 path : ~/.cache/pre-commit
2525 key : pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2626 - name : Install pre-commit
2727 run : pip install pre-commit
2828 - name : Run pre-commit
2929 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
3039 - name : Check that all files generated by pre-commit are in git
3140 run : |
3241 newfiles="$(git ls-files --others --exclude-from=.gitignore)"
0 commit comments