From 67948965445a2e9868e50944b8fb5de55ccba141 Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 15 Apr 2026 15:41:00 +0200 Subject: [PATCH 1/6] run lychee with fail mode on PRs --- .github/workflows/links.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index badcfe44..f3898bc7 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -7,7 +7,7 @@ on: - cron: "00 18 * * *" push: branches: - - main + - main pull_request: branches: - main @@ -19,17 +19,24 @@ jobs: steps: - uses: actions/checkout@v5 - - name: Link Checker - id: lychee + - name: Link Checker (CI strict) + if: github.event_name != 'schedule' + id: lychee_strict + uses: lycheeverse/lychee-action@v2 + with: + fail: true + + - name: Link Checker (scheduled report) + if: github.event_name == 'schedule' + id: lychee_schedule uses: lycheeverse/lychee-action@v2 with: fail: false - name: Create Issue From File - if: steps.lychee.outputs.exit_code != 0 + if: github.event_name == 'schedule' && steps.lychee_schedule.outputs.exit_code != 0 uses: peter-evans/create-issue-from-file@v5 with: title: Link Checker Report content-filepath: ./lychee/out.md labels: report, automated issue - From 11845ecd2646caddc5af7f181aed7a132709e7fe Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 15 Apr 2026 15:45:14 +0200 Subject: [PATCH 2/6] run lychee on JSON files --- .github/workflows/links.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index f3898bc7..a22cf3f3 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -24,6 +24,7 @@ jobs: id: lychee_strict uses: lycheeverse/lychee-action@v2 with: + args: --verbose --no-progress 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' fail: true - name: Link Checker (scheduled report) @@ -31,6 +32,7 @@ jobs: id: lychee_schedule uses: lycheeverse/lychee-action@v2 with: + args: --verbose --no-progress 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' fail: false - name: Create Issue From File From cdef25eaabd70d51eb6ca5c0796a907845eb32a0 Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 15 Apr 2026 15:48:11 +0200 Subject: [PATCH 3/6] added --root-dir /github/workspace to both Lychee runs so root-relative links like /everse_logo_mini.png can be resolved when scanning local files --- .github/workflows/links.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index a22cf3f3..2dc8007a 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -24,7 +24,7 @@ jobs: id: lychee_strict uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir /github/workspace 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' fail: true - name: Link Checker (scheduled report) @@ -32,7 +32,7 @@ jobs: id: lychee_schedule uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir /github/workspace 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' fail: false - name: Create Issue From File From edcd6622da1534463b960bec985f8170a79436c8 Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 15 Apr 2026 15:49:28 +0200 Subject: [PATCH 4/6] use ${{ github.workspace }} for --root-dir --- .github/workflows/links.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 2dc8007a..a363274c 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -24,7 +24,7 @@ jobs: id: lychee_strict uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --root-dir /github/workspace 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' fail: true - name: Link Checker (scheduled report) @@ -32,7 +32,7 @@ jobs: id: lychee_schedule uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --root-dir /github/workspace 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' fail: false - name: Create Issue From File From a0f11f71e981e38c9c55dca1dc91a5c04b1dc34a Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 15 Apr 2026 16:04:21 +0200 Subject: [PATCH 5/6] remove html --- .github/workflows/links.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index a363274c..7526bbc3 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -24,7 +24,7 @@ jobs: id: lychee_strict uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json' fail: true - name: Link Checker (scheduled report) @@ -32,7 +32,7 @@ jobs: id: lychee_schedule uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' 'web/**/*.html' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json' fail: false - name: Create Issue From File From 9417e98176f44652a6e886efaf39e56a0c4cf922 Mon Sep 17 00:00:00 2001 From: Thomas Vuillaume Date: Wed, 15 Apr 2026 16:06:13 +0200 Subject: [PATCH 6/6] excluse slug --- .github/workflows/links.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 7526bbc3..d61d41a6 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -24,7 +24,7 @@ jobs: id: lychee_strict uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir ${{ github.workspace }} --exclude '\$\{slug\}' --exclude '%7Bslug%7D' 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json' fail: true - name: Link Checker (scheduled report) @@ -32,7 +32,7 @@ jobs: id: lychee_schedule uses: lycheeverse/lychee-action@v2 with: - args: --verbose --no-progress --root-dir ${{ github.workspace }} 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json' + args: --verbose --no-progress --root-dir ${{ github.workspace }} --exclude '\$\{slug\}' --exclude '%7Bslug%7D' 'web/**/*.jsx' './**/*.md' './quality-tools/**/*.json' fail: false - name: Create Issue From File