Link Checker #34
This file contains hidden or 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: | |
schedule: | |
- cron: "0 4 * * *" # run every day at 4AM | |
jobs: | |
LinkChecker: | |
name: Link Checker | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- run: pip install linkchecker --user | |
- name: Link Checker ignoring the old documentation pages (and keeping the stable and preview pages) | |
run: | | |
linkchecker https://duckdb.org/ --ignore-url 'https?://duckdb\.org/docs/[0-9]*.[0-9]*/.*' --config .github/linkchecker/linkchecker.conf --file-output html/utf-8/report.html | |
echo $? | |
- run: cat report.html >> ${GITHUB_STEP_SUMMARY} | |
if: success() || failure() |