From ab3f9c7fb39762d52bc72e0db0e4516e525ca3f9 Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Fri, 14 Jun 2024 15:57:16 +0100 Subject: [PATCH] add --- .github/workflows/vale.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index de2c0f4b732..7d9524e7b76 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -37,7 +37,7 @@ jobs: for file in $(echo ${{ steps.changed-files.outputs.files }} | jq -r '.[]'); do echo "Running Vale on $file" vale --output=JSON $file > "vale_output_${file//\//_}.json" - vale --output=edit $file > "vale_output_${file//\//_}_edit.json" + vale --output=edit $file > "vale_output_${file//\//_}_edit.md" done echo "Vale outputs:" ls -l @@ -46,17 +46,11 @@ jobs: run: | for file in $(echo ${{ steps.changed-files.outputs.files }} | jq -r '.[]'); do mv $file "${file}.original" - vale --output=edit $file > $file + mv "vale_output_${file//\//_}_edit.md" $file done env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.REVIEWDOG_GITHUB_API_TOKEN }} - - name: Upload Vale results - uses: actions/upload-artifact@v3 - with: - name: vale-results - path: '*.json' - - name: Upload corrected files uses: actions/upload-artifact@v3 with: @@ -71,11 +65,6 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Download Vale results - uses: actions/download-artifact@v3 - with: - name: vale-results - - name: Download corrected files uses: actions/download-artifact@v3 with: @@ -95,7 +84,7 @@ jobs: reviewdog_flags: "" cleanup: "true" - - name: Run Reviewdog with Vale results + - name: Run Reviewdog with corrected files run: | for file in $(ls *.md.original); do original="${file}"