Skip to content

Commit

Permalink
change vale
Browse files Browse the repository at this point in the history
  • Loading branch information
ivegabr committed Feb 4, 2025
1 parent a713e8c commit 7a4e531
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ jobs:
run: |
git clone https://github.com/ivegabr/docs-styles.git ./docs-styles
- name: Install Vale
run: |
curl -L https://install.goreleaser.com/github.com/errata-ai/vale.sh | sh
# Add Vale to PATH if necessary (adjust the path if required)
echo "${PWD}/vale" >> $GITHUB_PATH
- name: Install Vale via errata-ai/vale-action
uses: errata-ai/vale-action@v2

- name: Install reviewdog
uses: reviewdog/action-setup@v1
Expand All @@ -31,8 +28,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Run Vale using the central config and output results in JSON format.
# Run Vale with your central configuration and output in JSON format.
vale --output=JSON --config=./docs-styles/.vale.ini docs/ > vale-report.json
# Pipe Vale's JSON output into reviewdog.
# The '-f=rdjson' flag tells reviewdog to expect Reviewdog's JSON format.
# Pipe the JSON output from Vale into reviewdog, which will post inline comments.
reviewdog -f=rdjson -name=vale -reporter=github-pr-review -level=error < vale-report.json

0 comments on commit 7a4e531

Please sign in to comment.