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.
This commit is contained in:
Axel Meyer
2026-05-04 20:23:23 +02:00
parent a737aeddc9
commit 32f91c56ba

View File

@@ -37,7 +37,10 @@ jobs:
- name: Internal link check (lychee) - name: Internal link check (lychee)
uses: lycheeverse/lychee-action@v2 uses: lycheeverse/lychee-action@v2
with: 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 fail: true
- name: README presence (root) - name: README presence (root)