From 32f91c56ba278c716fa1c64507cefa31e58b21f6 Mon Sep 17 00:00:00 2001 From: Axel Meyer Date: Mon, 4 May 2026 20:23:23 +0200 Subject: [PATCH] ci(docs): fix lychee --exclude (regex, not glob) "**/archive/**" was being passed as a regex via --exclude-path, causing 'repetition operator missing expression' parse error. lychee --exclude takes a regex pattern; use '/archive/' to match any URL/path containing an archive segment. --- .gitea/workflows/reusable-docs.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/reusable-docs.yml b/.gitea/workflows/reusable-docs.yml index ac19f2a..e0e5a4a 100644 --- a/.gitea/workflows/reusable-docs.yml +++ b/.gitea/workflows/reusable-docs.yml @@ -37,7 +37,10 @@ jobs: - name: Internal link check (lychee) uses: lycheeverse/lychee-action@v2 with: - args: --offline --no-progress --include-fragments "**/*.md" --exclude-path "**/archive/**" + # First positional arg is the input glob (files to scan). + # --exclude is a regex (not glob), matched against URL/path strings. + # We exclude any path component named "archive". + args: --offline --no-progress --include-fragments "**/*.md" --exclude '/archive/' fail: true - name: README presence (root)