Skip to content

Commit

Permalink
fix delimeter for multiple files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexJameson committed Aug 22, 2024
1 parent be2937e commit 084182a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/spellcheck-ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 084182a

Please sign in to comment.