File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 2020 fetch-depth : 0 # Fetch all history so we can access all commits
2121
2222 - name : Install Vale
23- uses : errata-ai/vale-action@v2
23+ run : |
24+ curl -sfL https://install.goreleaser.com/github.com/errata-ai/vale.sh | sh
25+ echo "$HOME/.local/bin" >> $GITHUB_PATH
26+ echo 'export PATH=$HOME/.local/bin:$PATH' >> $GITHUB_ENV
27+
28+ - name : Verify Vale Installation
29+ run : |
30+ vale --version
2431
2532 - name : Get changed files
2633 id : changed-files
3744 run : |
3845 for file in ${{ env.CHANGED_FILES }}; do
3946 echo "Running Vale on $file"
40- vale --output=JSON "$file" > "vale_output_${file//\//_}.json"
41- vale --output=edit "$file"
47+ $HOME/.local/bin/ vale --output=JSON "$file" > "vale_output_${file//\//_}.json"
48+ $HOME/.local/bin/ vale --output=edit "$file"
4249 done
4350 echo "Vale outputs:"
4451 ls -l
You can’t perform that action at this time.
0 commit comments