-
Notifications
You must be signed in to change notification settings - Fork 37
27 lines (21 loc) · 1014 Bytes
/
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
name: Markdown-related Check
on:
pull_request:
branches: "*"
jobs:
markdown-related-check:
name: markdown-related check
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Markdown Link Check
uses: docker://dragonflyoss/linter:v0.2.7
with:
# validate all links in markdown files excluding vendor folder
args: bash -c "code=0;for mdFile in $(find ./ -name '*.md' | grep -v index.md | grep -v vendor | grep -v docs/commandline); do markdown-link-check -q --config .github/workflows/.mlc_config.json $mdFile; if [ $? -ne 0 ]; then code=1; fi;done; echo $code; exit $code"
- name: Markdown Lint
uses: docker://dragonflyoss/linter:v0.2.7
with:
# lint all markdown files excluding vendor folder
args: bash -c "find ./ -name '*.md' | grep -v vendor | grep -v .github | grep -v index.md | grep -v docs/commandline | xargs mdl -r ~MD010,~MD013,~MD022,~MD024,~MD026,~MD029,~MD033,~MD036"