From 16cfd5acf1a5474be7cda03b2c28a0ab3f4238c4 Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev <33040934+AlexJameson@users.noreply.github.com> Date: Thu, 22 Aug 2024 03:20:43 +0300 Subject: [PATCH] fix --- .github/workflows/spellcheck-ru.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck-ru.yml b/.github/workflows/spellcheck-ru.yml index b5a66661955..a6f2d8a54f7 100644 --- a/.github/workflows/spellcheck-ru.yml +++ b/.github/workflows/spellcheck-ru.yml @@ -21,6 +21,7 @@ jobs: id: changed-files run: | changed_files=$(git diff --name-only ${{ steps.get-pr.outputs.base_sha }}..${{ steps.get-pr.outputs.head_sha }}) + changed_files=$(echo "$changed_files" | tr '\n' ' ') echo "Changed files: $changed_files" echo "::set-output name=all_changed_files::$changed_files" @@ -47,8 +48,9 @@ jobs: for file in $ALL_CHANGED_FILES; do echo "Running CSpell on $file..." file_path="${GITHUB_WORKSPACE}/${file}" + echo "File path: $file_path" file_content=$(cat "${file_path}") - cspell_errors=$(echo "$file_content" | cspell --config ${GITHUB_WORKSPACE}/cspell.json --no-must-find-files --exclude **/spellcheck-ru.yml) + cspell_errors=$(echo "$file_content" | cspell --config ${GITHUB_WORKSPACE}/cspell.json --no-must-find-files --exclude .github/workflows/spellcheck-ru.yml) if [ -n "$cspell_errors" ]; then cspell_output+="CSpell errors in $file:\n$cspell_errors\n\n" fi