From 5e549e13238a853f8860e29621ab6b31ee1b9ee4 Mon Sep 17 00:00:00 2001 From: Kent Daleng Date: Sun, 16 Mar 2025 18:15:37 +0100 Subject: ci/wiki: check that (local) links are well formed (#1282) * add check-links step, fix some links * don't depend on build right now * fix fragment * reintroduce dependency for build * don't only check links on push to main * maybe this is a more sensible dependency tree for this stuff * change commented suggestions, try v2.0.2 for action * describe why we're on v2.0.2 * revert to %E2%80%90 (works with lychee anyway) --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a61e2e2e..bdf78d78 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -228,9 +228,21 @@ jobs: - run: nix flake check continue-on-error: true + check-links: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + with: + show-progress: false + - uses: lycheeverse/lychee-action@v2.0.2 # later versions break fragment checks. don't bump until this is fixed: https://github.com/lycheeverse/lychee/issues/1574 + with: + args: --offline --include-fragments 'wiki/*.md' + publish-wiki: if: github.event_name == 'push' && github.ref == 'refs/heads/main' - needs: build + needs: + - build + - check-links permissions: contents: write runs-on: ubuntu-24.04 -- cgit