File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -250,6 +250,25 @@ jobs:
250250 name : html-link-report
251251 path : html-link-report.md
252252 retention-days : 5
253+ - name : Link Checker Summary
254+ if : always()
255+ run : |
256+ echo "## Link Checker Results" >> $GITHUB_STEP_SUMMARY
257+ echo "" >> $GITHUB_STEP_SUMMARY
258+ if [ -f "html-link-report.md" ]; then
259+ # Extract summary stats from the report
260+ TOTAL=$(grep -c "^\[" html-link-report.md 2>/dev/null || echo "0")
261+ ERRORS=$(grep -c "^\[ERR\]" html-link-report.md 2>/dev/null || echo "0")
262+ if [ "$ERRORS" -gt 0 ]; then
263+ echo ":x: **Found $ERRORS broken link(s)**" >> $GITHUB_STEP_SUMMARY
264+ else
265+ echo ":white_check_mark: **All links valid**" >> $GITHUB_STEP_SUMMARY
266+ fi
267+ echo "" >> $GITHUB_STEP_SUMMARY
268+ echo "See the [html-link-report artifact](../artifacts) for details." >> $GITHUB_STEP_SUMMARY
269+ else
270+ echo ":warning: No link check report found." >> $GITHUB_STEP_SUMMARY
271+ fi
253272 - name : Create issue if bad links detected
254273 if : ${{ !cancelled() && steps.linkchecker.outputs.exit_code != 0 && env.INPUT_ISSUE_ON_ERROR == 'true' }}
255274 uses : peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710
You can’t perform that action at this time.
0 commit comments