Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Aug 22, 2024
1 parent 72e899a commit a86e383
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit a86e383

Please sign in to comment.