-
Notifications
You must be signed in to change notification settings - Fork 21
/
action.yml
31 lines (28 loc) · 1.02 KB
/
action.yml
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
name: Validate
description: Check for dead links
runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Checkout global antora-playbook
uses: actions/checkout@v4
with:
repository: hazelcast/hazelcast-docs
sparse-checkout: |
antora-playbook.yml
lib/load-check-links-playbook.js
lib/antora-link-checker-extension.js
sparse-checkout-cone-mode: false
path: hazelcast-docs
ref: main
- name: Check for broken internal links
shell: bash
run: |
cp "./hazelcast-docs/lib/load-check-links-playbook.js" "./load-check-links-playbook.js"
npm i
npm i -D [email protected] [email protected]
node load-check-links-playbook.js $GITHUB_REPOSITORY $GITHUB_BASE_REF
./node_modules/.bin/antora --fetch --to-dir test --log-level=warn --log-failure-level=warn --extension=hazelcast-docs/lib/antora-link-checker-extension.js check-links-playbook.yml