Skip to content

Commit 9895676

Browse files
committed
Add a markdown lint workflow
1 parent cd97361 commit 9895676

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Markdown Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
fetch-depth: 0
12+
- uses: tj-actions/changed-files@v45
13+
id: changed-files
14+
with:
15+
files: '**/*.md'
16+
separator: ","
17+
- uses: DavidAnson/markdownlint-cli2-action@v19
18+
if: steps.changed-files.outputs.any_changed == 'true'
19+
with:
20+
globs: ${{ steps.changed-files.outputs.all_changed_files }}
21+
separator: ","

0 commit comments

Comments
 (0)