-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make GitHub Action Syntax Check fail when vale find issues
the 'fail_on_error' option of reviewdog didn't work. See errata-ai/vale-action#103
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,8 +10,17 @@ jobs: | |
- name: Checkout this repository | ||
uses: actions/[email protected] | ||
|
||
- name: Validate the syntax | ||
uses: errata-ai/vale-action@reviewdog | ||
- name: Get latest version of Vale | ||
id: lastversion | ||
uses: dvershinin/[email protected] | ||
with: | ||
fail_on_error: true | ||
vale_flags: "--config=.vale.ini" | ||
repository: errata-ai/vale | ||
|
||
- name: Install Vale | ||
run: | | ||
wget https://github.com/errata-ai/vale/releases/download/v${{ steps.lastversion.outputs.last_version }}/vale_${{ steps.lastversion.outputs.last_version }}_Linux_64-bit.tar.gz -O vale.tar.gz | ||
tar -xvzf vale.tar.gz vale | ||
rm vale.tar.gz | ||
- name: Validate the syntax | ||
run: ./vale --config=.vale.ini *.md |