Skip to content

Commit

Permalink
Merge branch 'test-vale' into test-vale-pr
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 authored Jun 14, 2024
2 parents 78028d1 + 0e612d5 commit 8310618
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ jobs:
mkdir -p original_files
mkdir -p corrected_files
for file in $(echo ${{ steps.changed-files.outputs.files }} | jq -r '.[]'); do
echo "Copying $file to original_files/${file//\//_}.original"
cp "$file" "original_files/${file//\//_}.original"
echo "Copying vale_output_${file//\//_}_edit.md to corrected_files/${file//\//_}"
cp "vale_output_${file//\//_}_edit.md" "corrected_files/${file//\//_}"
done
echo "Original files:"
Expand All @@ -62,12 +64,14 @@ jobs:
with:
name: original-files
path: original_files/
continue-on-error: true

- name: Upload corrected files
uses: actions/upload-artifact@v3
with:
name: corrected-files
path: corrected_files/
continue-on-error: true

suggest: # Reviewdog suggestion job
runs-on: ubuntu-latest
Expand All @@ -88,7 +92,11 @@ jobs:
name: corrected-files

- name: List downloaded files
run: ls -l
run: |
echo "Original files:"
ls -l original_files
echo "Corrected files:"
ls -l corrected_files
- name: Run Reviewdog Suggestion Action
uses: reviewdog/action-suggester@v1
Expand Down

0 comments on commit 8310618

Please sign in to comment.