diff --git a/.github/scripts/typos.sh b/.github/scripts/typos.sh new file mode 100755 index 0000000000..7ddebaddde --- /dev/null +++ b/.github/scripts/typos.sh @@ -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 - diff --git a/.github/workflows/checksrc.yml b/.github/workflows/checksrc.yml index 583e3e4a43..ec76227d32 100644 --- a/.github/workflows/checksrc.yml +++ b/.github/workflows/checksrc.yml @@ -72,11 +72,7 @@ jobs: run: .github/scripts/codespell.sh - name: 'typos' - run: | - typos --version - git ls-files | \ - grep -v -E '(codespell-ignore\.txt|spellcheck\.words|/wcurl|CIPHERS-TLS12\.md|/THANKS)' | \ - typos --file-list - --config .github/scripts/typos.toml + run: .github/scripts/typos.sh - name: 'cmakelint' run: scripts/cmakelint.sh