-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (32 loc) · 1 KB
/
lint_markdown.yml
File metadata and controls
35 lines (32 loc) · 1 KB
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
name: Lint Markdown files
on:
pull_request:
paths:
- ".github/workflow/lint_markdown.yml"
- "**.md"
permissions:
contents: read
jobs:
lint-grammar:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Vale
uses: errata-ai/vale-action@d89dee975228ae261d22c15adcd03578634d429c # v2
with:
vale_flags: "--glob=!{**/.snapshots/*,CHANGELOG.md,.github/styles/proselint/README.md}"
filter_mode: nofilter
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
lint-structure:
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: markdownlint-cli
uses: nosborn/github-action-markdown-cli@508d6cefd8f0cc99eab5d2d4685b1d5f470042c1 # v3.5.0
with:
files: .
config_file: .markdownlint.yaml
ignore_files: "CHANGELOG.md"