-
Notifications
You must be signed in to change notification settings - Fork 24
26 lines (24 loc) · 1.17 KB
/
vale-doc-lint.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
name: Check Docusaurus docs with vale linter
on: [pull_request]
jobs:
vale:
name: Vale doc linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: errata-ai/vale-action@reviewdog
with:
version: 2.30.0
# added, diff_context, file, nofilter
# Default is added: results are filtered for added/modified files. Set to no filter when all files need to be checked.
# More info: https://github.com/errata-ai/vale-action and https://github.com/reviewdog/reviewdog#filter-mode
filter_mode: nofilter
# github-pr-check, github-pr-review, github-check
reporter: github-pr-check
# Set fail_on_error to true to make sure builds fail.
fail_on_error: true
files: '["packages/react-native-sdk/README.md","packages/react-native-sdk/docusaurus","packages/react-native-sdk/src","packages/react-sdk/README.md","packages/react-sdk/src"]'
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}}