summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-05-08 11:28:34 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-05-12 13:56:49 +0200
commit47b3f9587424834f0a44343a2c799facc5111c1a (patch)
treef1c069f88325cbf2ee4d9aad153716bfc111d285 /.github
parentf93a4287cf833134020e5b35c4b800c2edff1b94 (diff)
CI: Make codespell checks blocking, but only check changed files
(cherry picked from commit b226f7e587c4b5093d7bf27a4b0ac687a2d1cd2e)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/static_checks.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/static_checks.yml b/.github/workflows/static_checks.yml
index 8dc5e0fbff..a13e761df8 100644
--- a/.github/workflows/static_checks.yml
+++ b/.github/workflows/static_checks.yml
@@ -36,6 +36,8 @@ jobs:
fi
echo "$files" >> changed.txt
cat changed.txt
+ files=$(echo "$files" | tr '\n' ' ')
+ echo "CHANGED_FILES=$files" >> $GITHUB_ENV
- name: File formatting checks (file_format.sh)
run: |
@@ -98,9 +100,10 @@ jobs:
fi
- name: Spell checks via codespell
+ if: github.event_name == 'pull_request'
uses: codespell-project/actions-codespell@v1
with:
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
check_hidden: false
- ignore_words_list: curvelinear,doubleclick,expct,findn,gird,hel,inout,lod,nd,numer,ot,te
- only_warn: true
+ ignore_words_list: curvelinear,doubleclick,expct,findn,gird,hel,inout,lod,nd,numer,ot,te,vai
+ path: ${{ env.CHANGED_FILES }}