Add GitHub Action workflow file
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name: Check Docusaurus docs with Vale linter
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
vale:
|
||||
name: Vale doc linter
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: errata-ai/vale-action@reviewdog
|
||||
with:
|
||||
# added, diff_context, file, nofilter
|
||||
filter_mode: nofilter
|
||||
# github-pr-check, github-pr-review, github-check
|
||||
reporter: github-pr-check
|
||||
fail_on_error: true
|
||||
files: docusaurus
|
||||
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}}
|
||||
Reference in New Issue
Block a user