move typos to a script

This commit is contained in:
Viktor Szakats 2025-07-12 09:24:59 +02:00
parent 7f4e2ea9f9
commit d2a801d82f
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 17 additions and 5 deletions

16
.github/scripts/typos.sh vendored Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
# Copyright (C) Viktor Szakats
#
# SPDX-License-Identifier: curl
set -eu
cd "$(dirname "${0}")"/../..
typos --version
git ls-files \
| grep -v -E '(codespell-ignore\.txt|spellcheck\.words|/wcurl|CIPHERS-TLS12\.md|/THANKS)' \
| typos \
--config '.github/scripts/typos.toml' \
--file-list -