-
Notifications
You must be signed in to change notification settings - Fork 1.1k
37 lines (33 loc) · 1.08 KB
/
vale-docs-linter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Check docs with Vale linter
on:
pull_request:
types: [opened, synchronize]
jobs:
vale:
name: Vale linter
runs-on: ubuntu-latest
steps:
- name: check out repo
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: get changed files
id: changed-files
uses: tj-actions/changed-files@v39
with:
fetch_depth: 2
# run reviewdog and the linter
- name: run reviewdog and linter
uses: errata-ai/vale-action@reviewdog
with:
files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
separator: ","
# added, diff_context, file, nofilter
# filter_mode: nofilter
# github-pr-check, github-pr-review, github-check
reporter: github-pr-check
fail_on_error: false
env:
# Required, set by GitHub actions automatically:
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}