-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaa0332
commit 6bc9c72
Showing
1 changed file
with
16 additions
and
3 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 |
---|---|---|
@@ -1,13 +1,26 @@ | ||
name: Vale | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
vale: | ||
name: runner / vale | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: errata-ai/vale-action@reviewdog | ||
|
||
- name: Get changed files | ||
id: changed-files | ||
uses: tj-actions/changed-files@v45 | ||
|
||
- name: List changed fiels | ||
run: | | ||
echo "Files changed:" | ||
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | ||
- name: Run Vale on changed files | ||
uses: errata-ai/vale-action@reviewdog | ||
with: | ||
reporter: github-check | ||
files: ${{ steps.changed-files.outputs.all_changed_files }} | ||
reporter: github-pr-check | ||
fail_on_error: true |