Skip to content

Commit c62af8c

Browse files
authored
Update vale-docs-linter.yml (#1047)
testing linting on changed and added files only
1 parent c38c11b commit c62af8c

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/vale-docs-linter.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,29 @@ on:
44
pull_request:
55
types: [opened, synchronize]
66

7-
87
jobs:
98
vale:
109
name: Vale linter
1110
runs-on: ubuntu-latest
1211
steps:
13-
- uses: actions/checkout@v2
14-
- uses: errata-ai/vale-action@reviewdog
12+
- name: check out repo
13+
uses: actions/checkout@v3
14+
with:
15+
fetch-depth: 2
16+
17+
- name: get changed files
18+
id: changed-files
19+
uses: tj-actions/changed-files@v39
20+
with:
21+
fetch_depth: 2
22+
23+
# run reviewdog and the linter
24+
- name: run reviewdog and linter
25+
uses: errata-ai/vale-action@reviewdog
1526
with:
27+
files: '["${{ steps.changed-files.outputs.any_changed }}", "${{ steps.changed-files.outputs.added_files }}"]'
1628
# added, diff_context, file, nofilter
17-
filter_mode: added
29+
filter_mode: nofilter
1830
# github-pr-check, github-pr-review, github-check
1931
reporter: github-pr-check
2032
fail_on_error: false

0 commit comments

Comments
 (0)