Check Links #33
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: Check Links | |
on: | |
workflow_dispatch: # Allow running on-demand | |
schedule: | |
# 1st of every month at 8:00 UTC (4:00 Eastern) | |
- cron: '0 8 1 * *' | |
jobs: | |
check: | |
name: Check Links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: corepack enable | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install | |
- name: Build site | |
run: yarn build:prod | |
- name: Check for broken internal links | |
run: yarn checklinks:internal | |
- name: Check for broken external links | |
run: yarn checklinks:external |