forked from eksctl-io/eksctl
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.25 KB
/
link-checker.yaml
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
name: Link checker
on:
pull_request:
paths:
- 'userdocs/**'
- '**.md'
push:
branches:
- main
paths:
- 'userdocs/**'
- '**.md'
jobs:
link-checker:
name: Check site links
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 #v3.5.3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 #v4.7.0
with:
python-version: ${{ matrix.python-version }}
- name: Setup Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe #v4.1.0
with:
go-version: 1.18.x
- name: Install doc dependencies
run: make install-site-deps
- name: Build docs for link check
run: make build-pages
# Using link-checker action to check links in Markdown, HTML files
- name: Link Checker
uses: lycheeverse/lychee-action@ec3ed119d4f44ad2673a7232460dc7dff59d2421 #v1.8.0
with:
fail: true
args: --exclude-all-private --exclude-mail --exclude-file .github/workflows/exclude-file.txt --verbose --no-progress './**/*.md' './**/*.html'