Fix GITHUB_OUTPUT format error in link checker#3
Conversation
grep -c returns exit 1 on no matches, causing `|| echo "0"` to append a bare "0" line to GITHUB_OUTPUT. Use `|| true` instead and default BROKEN to 0. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PR Auto-ReviewLooks good! No guardrail violations detected. A maintainer will review this shortly. |
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA GitHub Actions workflow configuration for link checking was updated to remove exclusions, reinitialize error variables, improve error counting logic with fallback handling, and ensure broken link counts are always written to output. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip Migrating from UI to YAML configuration.Use the |
PR Auto-ReviewLooks good! No guardrail violations detected. A maintainer will review this shortly. |
Summary
grep -cwith|| echo "0"corrupting$GITHUB_OUTPUTby writing a bare0on a separate lineTest plan
🤖 Generated with Claude Code
Summary by CodeRabbit