Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Jun 17, 2024
1 parent 1a9848b commit 2f2208e
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ jobs:
fetch-depth: 0 # Fetch all history so we can access all commits

- name: Install Vale
uses: errata-ai/vale-action@v2
run: |
curl -sfL https://install.goreleaser.com/github.com/errata-ai/vale.sh | sh
echo "$HOME/.local/bin" >> $GITHUB_PATH
echo 'export PATH=$HOME/.local/bin:$PATH' >> $GITHUB_ENV
- name: Verify Vale Installation
run: |
vale --version
- name: Get changed files
id: changed-files
Expand All @@ -37,8 +44,8 @@ jobs:
run: |
for file in ${{ env.CHANGED_FILES }}; do
echo "Running Vale on $file"
vale --output=JSON "$file" > "vale_output_${file//\//_}.json"
vale --output=edit "$file"
$HOME/.local/bin/vale --output=JSON "$file" > "vale_output_${file//\//_}.json"
$HOME/.local/bin/vale --output=edit "$file"
done
echo "Vale outputs:"
ls -l
Expand Down

0 comments on commit 2f2208e

Please sign in to comment.