From 5749856b26316a3e1dabf45521fc77152c17f0b4 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Mon, 17 Jun 2024 18:20:17 +0100 Subject: [PATCH] add --- .github/workflows/vale.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index cb1d99fc4cf..255a898079e 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -39,14 +39,13 @@ jobs: - name: Run Vale on changed files run: | - IFS="," read -r -a files <<< "${{ steps.get_changed_files.outputs.all_changed_files }}" - for file in "${files[@]}"; do - echo "Running Vale on $file" - vale --output=JSON "$file" > "vale_output_${file//\//_}.json" - vale --output=edit "$file" > "vale_output_${file//\//_}_edit.md" - done - echo "Vale outputs:" - ls -l + for file in ${{ steps.get_changed_files.outputs.all_changed_files }}; do + echo "Running Vale on $file" + vale --output=JSON $file > "vale_output_${file//\//_}.json" + vale --output=edit $file > "vale_output_${file//\//_}_edit.md" + done + echo "Vale outputs:" + ls -l - name: Apply Vale edits and save originals run: |