From a407d2c4bb2b984f1588b9ec55e643dc6a3cc2cf Mon Sep 17 00:00:00 2001 From: "E. G. Patrick Bos" Date: Thu, 2 Nov 2023 20:47:06 +0100 Subject: [PATCH] fix link checker output The workflows didn't output the broken links anymore. Now they do. --- .github/workflows/link-checker-pr.yml | 3 +-- .github/workflows/link-checker.yml | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/link-checker-pr.yml b/.github/workflows/link-checker-pr.yml index 3bd65be1..eff16d3c 100644 --- a/.github/workflows/link-checker-pr.yml +++ b/.github/workflows/link-checker-pr.yml @@ -20,8 +20,7 @@ jobs: broken_count=$(printf "%d" $(grep "🚫 Errors" lychee/out.md | cut -d'|' -f3)) if [ "$broken_count" -gt "$broken_max" ]; then echo "Number of broken links (${broken_count}) exceeds maximum allowed number (${broken_max})." - echo "Broken links: " - echo "$broken" + cat lychee/out.md exit 1 else echo "Number of broken links (${broken_count}) less than or equal to maximum allowed number (${broken_max})." diff --git a/.github/workflows/link-checker.yml b/.github/workflows/link-checker.yml index 5846461d..f1bc4c2f 100644 --- a/.github/workflows/link-checker.yml +++ b/.github/workflows/link-checker.yml @@ -21,8 +21,7 @@ jobs: broken_count=$(printf "%d" $(grep "🚫 Errors" lychee/out.md | cut -d'|' -f3)) if [ "$broken_count" -gt "$broken_max" ]; then echo "Number of broken links (${broken_count}) exceeds maximum allowed number (${broken_max})." - echo "Broken links: " - echo "$broken" + cat lychee/out.md exit 1 else echo "Number of broken links (${broken_count}) less than or equal to maximum allowed number (${broken_max})."