Skip to content

Commit 5988e24

Browse files
Create post to test Vale (#113)
Set up linting workflow to run for changed files only
1 parent 3c50a67 commit 5988e24

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/linting.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,17 @@ jobs:
88
- name: Checkout
99
uses: actions/checkout@master
1010

11+
- name: Get Changed Files
12+
id: get_changed_files
13+
uses: lots0logs/gh-action-get-changed-files@2.2.2
14+
with:
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
1117
- name: Vale
12-
uses: errata-ai/vale-action@v2.0.1
18+
uses: errata-ai/vale-action@reviewdog
1319
with:
14-
onlyAnnotateModifiedLines: true
15-
reporter: github-pr-check
20+
reporter: github-pr-check
21+
files: '${{ steps.get_changed_files.outputs.all }}'
22+
fail_on_error: true
1623
env:
1724
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)