Skip to content

Commit 4aac41b

Browse files
authored
ignore root-relative links in lychee link check
Exclude root-relative paths (/…) from the lychee link checker to prevent InvalidPathToUri errors when scanning the built _site HTML. This keeps external link validation intact while avoiding false CI failures on internal site links.
1 parent bf2a5a9 commit 4aac41b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/linkcheck.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232
id: lychee
3333
uses: lycheeverse/lychee-action@a8c4c7cb88f0c7386610c35eb25108e448569cb0 #v2.7.0
3434
with:
35-
args: --verbose --no-progress _site/*.html
35+
args: >
36+
--verbose
37+
--no-progress
38+
--exclude '^/.*'
39+
_site
3640
env:
3741
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3842

0 commit comments

Comments
 (0)