Skip to content

Commit 2f2208e

Browse files
author
mirnawong1
committed
add
1 parent 1a9848b commit 2f2208e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/vale.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ jobs:
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
@@ -37,8 +44,8 @@ jobs:
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

0 commit comments

Comments
 (0)