From 084182a45deff6840e094f447dff37f473dd8b46 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev <33040934+AlexJameson@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:23:04 +0300 Subject: [PATCH] fix delimeter for multiple files --- .github/workflows/spellcheck-ru.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/spellcheck-ru.yml b/.github/workflows/spellcheck-ru.yml index f41cacdfb11..20054216c45 100644 --- a/.github/workflows/spellcheck-ru.yml +++ b/.github/workflows/spellcheck-ru.yml @@ -34,11 +34,13 @@ jobs: - name: Run CSpell on all changed files continue-on-error: true run: | - for file in ${{ steps.files.outputs.all_files }}; do - if [ "$file" = ".github/workflows/spellcheck-ru.yml" ] || [ "$file" = "cspell.json" ]; then + IFS=' ' read -r -a files <<< "${{ steps.files.outputs.all_files }}" + echo "${files[@]}" + for file in "${files[@]}"; do + if [[ "$file" == ".github/workflows/spellcheck-ru.yml" || "$file" == "cspell.json" ]]; then echo "Skipping CSpell check for $file" continue fi echo "Checking $file for spelling errors..." - cspell $file --config cspell.json --show-suggestions + cspell "$file" --config cspell.json --show-suggestions done \ No newline at end of file