-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 831 Bytes
/
docs-links.yml
File metadata and controls
36 lines (30 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Check documentation links
on:
push:
paths:
- 'docs/**'
- '.github/workflows/docs-links.yml'
pull_request:
paths:
- 'docs/**'
- '.github/workflows/docs-links.yml'
jobs:
link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install markdown-link-check
run: |
npm install -g markdown-link-check
- name: Run link check on docs
run: |
find docs -name "*.md" -print0 | xargs -0 -n 1 markdown-link-check -q
- name: Optionally check wiki (if cloned separately)
if: false
run: |
echo "Clone and check wiki repo here if desired."