Skip to content

Commit 2fd3a90

Browse files
Add GH Actions workflow file with vale doc linting
1 parent 9ebaed7 commit 2fd3a90

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check Docusaurus docs with Vale linter
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
vale:
7+
name: Vale doc linter
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: errata-ai/vale-action@reviewdog
12+
with:
13+
# added, diff_context, file, nofilter
14+
filter_mode: nofilter
15+
# github-pr-check, github-pr-review, github-check
16+
reporter: github-pr-check
17+
fail_on_error: true
18+
files: docusaurus
19+
env:
20+
# Required, set by GitHub actions automatically:
21+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)