Skip to content

Merge pull request #141 from edvinskis/enable-anchor-sections-and-smo… #25

Merge pull request #141 from edvinskis/enable-anchor-sections-and-smo…

Merge pull request #141 from edvinskis/enable-anchor-sections-and-smo… #25

Workflow file for this run

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 }}