cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

ebc0d5917b3353a7f26639febc5ed088b8eaefac

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2026-08-22T03:56:06Z

Use --root-dir for local link resolution

--base requires an absolute path or a full URL; --root-dir is the flag for
resolving root-relative links in local files.
 .github/workflows/link-check.yml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml
index f608200..2cb2d01 100644
--- a/.github/workflows/link-check.yml
+++ b/.github/workflows/link-check.yml
@@ -46,7 +46,11 @@ jobs:
       - name: Internal links
         uses: lycheeverse/lychee-action@v2.9.0
         with:
-          args: --offline --base .build-dev --include-verbatim '.build-dev/**/*.html'
+          args: >-
+            --offline
+            --root-dir ${{ github.workspace }}/.build-dev
+            --include-verbatim
+            '.build-dev/**/*.html'
           fail: true
           output: internal.md
 
@@ -57,6 +61,7 @@ jobs:
         with:
           args: >-
             --exclude-mail
+            --root-dir ${{ github.workspace }}/.build-dev
             --exclude '\.onion'
             --max-concurrency 8
             --max-retries 2