[ci]: use git ls-files for spellchecking (#345)

excluding the `.png` icons.

this also fixes the wrong `.patch` and `.diff` extensions checks.
no clue why we were trying to find `.patch` and `.diff` to begin with.

i think i probably copy pasted the command i tested on nsxiv-extra repo
or somewhere else without changing the extensions to `.c` and `.h`.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/345
This commit is contained in:
NRK 2022-07-27 08:57:50 +02:00
parent dd0b3cb163
commit 1263f23970

View File

@ -5,7 +5,5 @@ pipeline:
spell-check:
image: alpine:edge
commands: |
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell >/dev/null
find . \( -name '*.patch' -o -name '*.diff' -o -name '*.md' \) -print | \
xargs -I{} codespell {}
codespell nsxiv.1 config.mk Makefile
apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell git >/dev/null
git ls-files | sed '/\.png$/d' | xargs codespell