-
Notifications
You must be signed in to change notification settings - Fork 513
65 lines (56 loc) · 1.91 KB
/
vale.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Vale
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
BUILD_VIDEOS: true
jobs:
vale:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install docutilsfor rst2html
run: sudo apt-get install -y docutils
- name: Linter
uses: errata-ai/vale-action@reviewdog
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}}
with:
files: docs/
vale_flags: "--config=vale/vale.ini"
reporter: github-pr-check
fail_on_error: true
filter_mode: file
version: 3.4.2
- name: Guide Linter
uses: errata-ai/vale-action@reviewdog
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}}
with:
files: docs/guide/
vale_flags: "--config=vale/guide.ini"
reporter: github-pr-check
fail_on_error: true
filter_mode: file
version: 3.4.2
- name: Conf news Linter
uses: errata-ai/vale-action@reviewdog
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}}
with:
files: docs
vale_flags: "--config=vale/news.ini --glob=docs/conf/**/news/*"
reporter: github-pr-check
fail_on_error: true
filter_mode: file
version: 3.4.2