From d2a801d82f5042cc80d6f651edfbfffb9eb16ae9 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 12 Jul 2025 09:24:59 +0200 Subject: [PATCH] move typos to a script --- .github/scripts/typos.sh | 16 ++++++++++++++++ .github/workflows/checksrc.yml | 6 +----- 2 files changed, 17 insertions(+), 5 deletions(-) create mode 100755 .github/scripts/typos.sh 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