-
Notifications
You must be signed in to change notification settings - Fork 523
46 lines (40 loc) · 1.19 KB
/
docs-validation.yml
File metadata and controls
46 lines (40 loc) · 1.19 KB
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
37
38
39
40
41
42
43
44
45
46
name: Docs Validation
on:
pull_request:
paths:
- "docs/**"
push:
branches: ["main"]
paths:
- "docs/**"
permissions:
contents: read
jobs:
check-broken-links:
name: Check Broken Links
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
github.com:443
nodejs.org:443
ph.mintlify.com:443
registry.npmjs.org:443
release-assets.githubusercontent.com:443
storage.googleapis.com:443
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: "21"
- name: Check for broken links
working-directory: ./docs
run: |
echo "Checking for broken links in documentation..."
npx --yes mintlify@latest broken-links
echo "✅ No broken links found"