Skip to content

Commit 0a17732

Browse files
committed
ci: 👷 setup markdown linter workflow
1 parent 448b31a commit 0a17732

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/markdown.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Markdown CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- ".github/workflows/*"
9+
- ".markdownlint.jsonc"
10+
- "**/*.md"
11+
pull_request:
12+
branches:
13+
- master
14+
paths:
15+
- ".github/workflows/*"
16+
- ".markdownlint.jsonc"
17+
- "**/*.md"
18+
19+
jobs:
20+
lint:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: markdownlint-cli
28+
uses: nosborn/[email protected]
29+
with:
30+
files: "*.md"
31+
config_file: .markdownlint.jsonc
32+
dot: true

.markdownlint.jsonc

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
// I can set heading levels at my discretion!
3+
"MD001": false,
4+
25
// Style of unordered lists..
36
"MD007": {
47
"indent": 2,

0 commit comments

Comments
 (0)