CI: Skip codespell check if CHANGED_FILES
is empty
This can happen when only thirdparty files are changed, since we grep them out. Re-add `bin` and `thirdparty` to the skip list for good measure.
This commit is contained in:
parent
769d8a7bbe
commit
c7a5ce656c
1 changed files with 2 additions and 2 deletions
4
.github/workflows/static_checks.yml
vendored
4
.github/workflows/static_checks.yml
vendored
|
@ -102,9 +102,9 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Spell checks via codespell
|
- name: Spell checks via codespell
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request' && env.CHANGED_FILES != ''
|
||||||
uses: codespell-project/actions-codespell@v1
|
uses: codespell-project/actions-codespell@v1
|
||||||
with:
|
with:
|
||||||
skip: "*.desktop,*.gen.*,*.po,*.pot,*.rc,./AUTHORS.md,./COPYRIGHT.txt,./DONORS.md,./core/input/gamecontrollerdb.txt,./core/string/locales.h,./editor/project_converter_3_to_4.cpp,./misc/scripts/codespell.sh,./platform/android/java/lib/src/com,./platform/web/node_modules,./platform/web/package-lock.json"
|
skip: "./bin,./thirdparty,*.desktop,*.gen.*,*.po,*.pot,*.rc,./AUTHORS.md,./COPYRIGHT.txt,./DONORS.md,./core/input/gamecontrollerdb.txt,./core/string/locales.h,./editor/project_converter_3_to_4.cpp,./misc/scripts/codespell.sh,./platform/android/java/lib/src/com,./platform/web/node_modules,./platform/web/package-lock.json"
|
||||||
ignore_words_list: "curvelinear,doubleclick,expct,findn,gird,hel,inout,lod,nd,numer,ot,te,vai"
|
ignore_words_list: "curvelinear,doubleclick,expct,findn,gird,hel,inout,lod,nd,numer,ot,te,vai"
|
||||||
path: ${{ env.CHANGED_FILES }}
|
path: ${{ env.CHANGED_FILES }}
|
||||||
|
|
Loading…
Reference in a new issue