feat(test): add docs linter to PR workflow actions (#4321)
This commit is contained in:
34
.github/workflows/docslint.yml
vendored
Normal file
34
.github/workflows/docslint.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: 'Docs Linting:'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
paths:
|
||||
- '.github/workflows/docslint.yml'
|
||||
- 'website/**'
|
||||
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
paths:
|
||||
- '.github/workflows/docslint.yml'
|
||||
- 'website/**'
|
||||
|
||||
jobs:
|
||||
Prose:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Vale Linter
|
||||
uses: errata-ai/vale-action@v1.3.0
|
||||
with:
|
||||
# Optional
|
||||
files: website/content/docs
|
||||
env:
|
||||
# Required
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
Reference in New Issue
Block a user