-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (43 loc) · 1.11 KB
/
documentation-validation.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
40
41
42
43
44
45
name: Markdown Lint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Create markdownlint config
run: |
echo '{
"MD013": false
}' > .markdownlint.json
- name: Run Markdown Lint
uses: avto-dev/[email protected]
with:
args: '**/*.md'
fix: true
- name: Create markdown-link-check config file
run: |
cat > .mlc_config.json << EOF
{
"ignorePatterns": [
{
"pattern": "^Parser.md"
},
{
"pattern": "^Selectors/Link%20Selector.md"
},
{
"pattern": "^https://regexr.com/"
}
]
}
EOF
- name: Markdown link check
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc_config.json'
folder-path: '.'
max-depth: -1