Skip to content

Commit cbf1284

Browse files
committed
[CI] Add markdownlint workflow
1 parent a8582da commit cbf1284

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
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+
"default": true,
3+
"heading-style": "atx",
4+
"line_length": false,
5+
"no-inline-html": false
6+
}

.github/workflows/markdownlint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.md"
7+
branches:
8+
- "main"
9+
pull_request:
10+
paths:
11+
- "**.md"
12+
branches:
13+
- "main"
14+
15+
jobs:
16+
mdlint:
17+
name: Lint Markdown
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # 2.3.4
22+
23+
- name: Run markdownlint
24+
uses: nosborn/github-action-markdown-cli@9fc95163471d6460c35cccad13645912aaa25d5f # 1.1.1
25+
with:
26+
files: "."
27+
config_file: ".github/markdownlint.json"

0 commit comments

Comments
 (0)