From f64c190237d6badd6f55f9ce40f6696de631ee63 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Wed, 5 Nov 2025 13:51:29 -0600 Subject: [PATCH] suppresses redirect spam and prevent duplicate output in the reporting (#5977) --- .github/workflows/linkchecker.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/linkchecker.yml b/.github/workflows/linkchecker.yml index c91a88a9f49..ec570016688 100644 --- a/.github/workflows/linkchecker.yml +++ b/.github/workflows/linkchecker.yml @@ -50,6 +50,7 @@ jobs: --max-concurrency 4 --retry-wait-time 10 --timeout 30 + --accept 200..=299,429 --user-agent "Mozilla/5.0 (compatible; Lychee/v0.1)" --skip-missing --exclude ".*%23.*" @@ -74,6 +75,7 @@ jobs: "${{ steps.build_docs.outputs.html_path }}/**/*.html" output: lychee-report.md format: markdown + jobSummary: false # Let the action fail naturally - we'll handle it in the summary step fail: true @@ -104,17 +106,8 @@ jobs: echo "" >> "$GITHUB_STEP_SUMMARY" echo "### Full Report:" >> "$GITHUB_STEP_SUMMARY" if [ -f "lychee-report.md" ]; then - # Limit output to first 500 lines to avoid exceeding 1MB GitHub limit echo '```' >> "$GITHUB_STEP_SUMMARY" - head -n 500 lychee-report.md >> "$GITHUB_STEP_SUMMARY" - - # Check if report was truncated - TOTAL_LINES=$(wc -l < lychee-report.md) - if [ "$TOTAL_LINES" -gt 500 ]; then - echo "" >> "$GITHUB_STEP_SUMMARY" - echo "... (Truncated. Showing first 500 of $TOTAL_LINES lines)" >> "$GITHUB_STEP_SUMMARY" - echo "View the full job logs for complete results." >> "$GITHUB_STEP_SUMMARY" - fi + cat lychee-report.md >> "$GITHUB_STEP_SUMMARY" echo '```' >> "$GITHUB_STEP_SUMMARY" else echo "No detailed report available." >> "$GITHUB_STEP_SUMMARY"