Skip to content

Check broken links (htmltest) #128

Check broken links (htmltest)

Check broken links (htmltest) #128

Workflow file for this run

# Run htmltest to check for broken external links
# Scheduled for every first wednesday of the month
name: Check broken links (htmltest)
on:
workflow_dispatch:
schedule:
- cron: '25 8 1-7 * 3'
jobs:
htmltest:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Set up Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: "latest"
- name: Run Hugo
run: hugo -d dist
- name: Test HTML
continue-on-error: true
uses: wjdp/htmltest-action@master
with:
path: dist
config: .github/htmltest-config.yml
- name: Archive htmltest results
uses: actions/upload-artifact@v4
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7