-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (40 loc) · 1.16 KB
/
link_checker.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
38
39
40
41
42
43
44
45
46
47
name: Link Checker
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
tag:
description: Tag for manually checking links
required: False
default: ""
jobs:
linkChecker:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Build Quarto site
run: quarto render # Build the Quarto book to generate the latest content
- name: Link Checker
uses: lycheeverse/[email protected]
with:
args: >-
--exclude-path 'docs/_under_development'
--exclude-path '_site/docs/_under_development'
--accept 429
--verbose
--no-progress
'./**/*.md'
'./**/*.qmd'
'./**/*.html'
# Verbose output and check for both source .md and .qmd files, and then the rendered .html files
fail: true # Fail the job if any links are broken
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}