From 7dcdb699a6ea40317b9cff501b2d96adf12f793f Mon Sep 17 00:00:00 2001 From: Victor Pacyna Date: Thu, 8 Oct 2026 10:53:14 +0200 Subject: [PATCH] check links on pages extracted from sitemap --- .github/workflows/links.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 3af56ac..f2aae1f 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -33,8 +33,16 @@ jobs: --verbose --no-progress './public/**/*.html' + - name: Collect Pages (Scheduled) + if: github.event_name == 'schedule' + run: | + curl -fsSL https://cedardb.com/docs/sitemap.xml \ + | grep -oE '[^<]+' | sed -E 's###g' > pages.txt + echo "Found $(wc -l < pages.txt) pages" + test -s pages.txt + - name: Check Links (Scheduled) if: github.event_name == 'schedule' uses: lycheeverse/lychee-action@v2 with: - args: --config lychee.toml --base-url 'https://cedardb.com' --verbose --no-progress './content/**/*.md' + args: --config lychee.toml --verbose --no-progress --files-from pages.txt