diff --git a/.github/workflows/link-checker-pr.yml b/.github/workflows/link-checker-pr.yml index 3bd65be1..da77c49a 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 link-checker/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..f557964e 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 link-checker/out.md exit 1 else echo "Number of broken links (${broken_count}) less than or equal to maximum allowed number (${broken_max})."