From a86e3833340097e82d2b872db1d1dec28dd51eaf Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Thu, 22 Aug 2024 16:51:53 +0100 Subject: [PATCH] add --- .github/workflows/vale.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml index 3667eb3148e..ce10f7858e8 100644 --- a/.github/workflows/vale.yml +++ b/.github/workflows/vale.yml @@ -35,12 +35,16 @@ jobs: run: | echo "Changed files: ${{ env.CHANGED_FILES }}" - - name: Run Vale with reviewdog + - name: Run Vale with Reviewdog on Changed Files run: | + export PATH=$PATH:/home/runner/vale # Add Vale to the PATH if [ -z "${{ env.CHANGED_FILES }}" ]; then echo "No changed files to lint." else for file in ${{ env.CHANGED_FILES }}; do - vale --output=JSON "$file" | /home/runner/reviewdog -f=vale -name="vale" -reporter=github-pr-review -level=warning -filter-mode=added -fail-on-error=true -tee + vale --output=JSON "$file" | reviewdog -f=vale -name="vale" -reporter=github-pr-check -level=warning -filter-mode=added -fail-on-error=true -tee done fi + env: + REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.VALE_GITHUB_TOKEN }} + \ No newline at end of file