Merge pull request #144 from TU-Delft-DCC/develop #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |