Skip to content

Commit 15c507d

Browse files
authored
Create md-link-check.yml
1 parent 2d8cb3c commit 15c507d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Markdown Link Check
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.md'
7+
pull_request:
8+
paths:
9+
- '**.md'
10+
11+
jobs:
12+
markdown-link-check:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: '18'
22+
23+
- name: Install markdown-link-check
24+
run: npm install -g markdown-link-check
25+
26+
- name: Run markdown-link-check on all Markdown files
27+
run: |
28+
find . -name "*.md" -print0 | xargs -0 -n1 markdown-link-check

0 commit comments

Comments
 (0)