-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (30 loc) · 1016 Bytes
/
doc-links.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
32
33
34
35
36
37
name: Documentation links
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: read
jobs:
markdown-test:
name: Markdown files test
runs-on: ubuntu-latest
steps:
- name: Clone sources
uses: actions/checkout@v4
with:
path: extension
- name: Launch localhost server
run: |
sudo npm install --global http-server
http-server ./extension &
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Check links in Markdown files
run: |
gem install awesome_bot
cd extension
awesome_bot --files README.md --allow-dupe --allow-redirect --allow 401 --skip-save-results --base-url http://localhost:8080/
awesome_bot docs/*.md --allow-dupe --allow-redirect --allow 401 --white-list http://127.0.0.1:80,releases/tag/A.B.C,http://your-misp-address --skip-save-results --base-url http://localhost:8080/docs/