Skip to content

Create yml file for Vale GitHub Action #2

Create yml file for Vale GitHub Action

Create yml file for Vale GitHub Action #2

name: Check docs with Vale linter
on:
pull_request:
types: [opened, synchronize]
jobs:
vale:
name: Vale linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: errata-ai/vale-action@reviewdog
with:
files: all
# added, diff_context, file, nofilter
filter_mode: file
# 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}}