-
Notifications
You must be signed in to change notification settings - Fork 13.7k
47 lines (46 loc) · 1.33 KB
/
markdownlint.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
46
47
name: MarkdownLint
on: pull_request
jobs:
project_lint:
name: Lint project files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tj-actions/changed-files@v41
id: changed-files
with:
files: |
**/project*.md
!./*.md
!README.md
!./archive/**.md
!./templates/**.md
separator: ','
- uses: DavidAnson/markdownlint-cli2-action@v14
if: steps.changed-files.outputs.any_changed == 'true'
with:
config: './project.markdownlint-cli2.jsonc'
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','
lesson_lint:
name: Lint lesson files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: tj-actions/changed-files@v41
id: changed-files
with:
files: |
**.md
!./*.md
!README.md
!**/project*.md
!./archive/**.md
!./templates/**.md
separator: ','
- uses: DavidAnson/markdownlint-cli2-action@v14
if: steps.changed-files.outputs.any_changed == 'true'
with:
config: './lesson.markdownlint-cli2.jsonc'
globs: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','