Skip to content

Commit b4c2b49

Browse files
committed
chore: add markdown check to git workflow
Signed-off-by: Maryam Tahhan <[email protected]>
1 parent 26e0e6c commit b4c2b49

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/markdown.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Markdown Quality Checks
3+
4+
on:
5+
pull_request:
6+
7+
jobs:
8+
run-quality-checks:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
15+
- uses: tj-actions/changed-files@v44
16+
id: changed-markdown-files
17+
with:
18+
files: '**/*.md'
19+
separator: ","
20+
21+
- name: Lint Markdown files
22+
uses: DavidAnson/markdownlint-cli2-action@v16
23+
if: steps.changed-markdown-files.outputs.any_changed == 'true'
24+
with:
25+
globs: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
26+
config: '.markdownlint.json'
27+
fix: true
28+
separator: ","
29+
continue-on-error: false

0 commit comments

Comments
 (0)