Skip to content

Commit d6ce9cd

Browse files
committed
Github Action - Markdown Linting for PR
1 parent 118924f commit d6ce9cd

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

.github/.markdownlint.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"MD013": false,
3+
"ul-indent": {
4+
"indent": 4
5+
}
6+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: check-markdown
2+
on: [pull_request]
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
12+
- uses: tj-actions/changed-files@v45
13+
id: changed-files
14+
with:
15+
files: '**/*.md'
16+
separator: ","
17+
18+
- uses: DavidAnson/markdownlint-cli2-action@v17
19+
if: steps.changed-files.outputs.any_changed == 'true'
20+
with:
21+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
22+
separator: ","
23+
config: ./.github/.markdownlint.json
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: mkdocs-build
22
on:
33
push:
44
branches:

0 commit comments

Comments
 (0)