-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (37 loc) · 1.13 KB
/
lint_markdown.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
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Lint Markdown files
on:
pull_request:
paths:
- ".github/workflow/lint_markdown.yml"
- "**.md"
jobs:
lint-grammar:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git checkout
uses: actions/checkout@v4
- run: |
venv="$HOME/.local/share/venv"
python3 -m venv "$venv"
echo "$venv/bin" >> $GITHUB_PATH
- name: Vale
uses: errata-ai/vale-action@2690bc95f0ed3cb5220492575af09c51b04fbea9
with:
vale_flags: "--glob=!{docs/testdata/*,CHANGELOG.md,.github/styles/proselint/README.md,examples/simple_plugin/docs/*.md}"
filter_mode: nofilter
version: '3.0.3'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
lint-structure:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: markdownlint-cli
uses: nosborn/[email protected]
with:
files: .
config_file: .markdownlint.yaml
ignore_files: "{docs/testdata/*,CHANGELOG.md,examples/simple_plugin/docs/*.md}"