We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation.
name:'Link Checker: All English'# **What it does**: Renders the content of every page and check all internal links.# **Why we have it**: To make sure all links connect correctly.# **Who does it impact**: Docs content.on:workflow_dispatch:push:branches:-mainpull_request:permissions:contents:read# Needed for the 'trilom/file-changes-action' actionpull-requests:read# This allows a subsequently queued workflow run to interrupt previous runsconcurrency:group:'${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'cancel-in-progress:truejobs:check-links:runs-on:${{fromJSON('["ubuntu-latest","self-hosted"]')[github.repository=='github/docs-internal']}}steps:-name:Checkoutuses:actions/checkout@v3-name:Setupnodeuses:actions/setup-node@v3with:node-version:16.13.xcache:npm-name:Installrun:npmci# Creates file "$/files.json", among others-name:Gatherfileschangeduses:trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4bwith:fileOutput:'json'# For verification-name:Showfileschangedrun:cat$HOME/files.json-name:Linkcheck(warnings,changedfiles)run:|
./script/rendered-content-link-checker.mjs \
--language en \
--max 100 \
--check-anchors \
--check-images \
--verbose \
--list $HOME/files.json
-name:Linkcheck(critical,allfiles)run:|
./script/rendered-content-link-checker.mjs \
--language en \
--exit \
--verbose \
--check-images \
--level critical