fix(CI): unblock Release workflow documentation job on main pushes#12511
Conversation
Skip the PR-only team membership check for workflow_call runs and allow the deploy job to proceed when that dependency is skipped, so Release can deploy to NPM again. Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughThe documentation workflow's ChangesDocumentation Workflow Job Conditions
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Preview: https://pf-react-pr-12511.surge.sh A11y report: https://pf-react-pr-12511-a11y.surge.sh |
| required: true | ||
| jobs: | ||
| check-permissions: | ||
| if: github.event_name != 'workflow_call' |
There was a problem hiding this comment.
I might be misunderstanding since I'm not 100% on github actions, but this shouldn't be needed right? The subsequent always() + github.event_name == 'workflow_call' logic in the deploy step seems like it would allow a workflow call to bypass the failed the check-permissions step.
If it is needed, what does this line do? Short-circuit the check-team-membership.yml if it's a workflow_call?
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/documentation.yml:
- Line 44: A stray character `e` exists on line 44 of the documentation.yml
workflow file which breaks YAML parsing and prevents all workflow jobs from
executing. Remove this errant `e` character from line 44 to restore valid YAML
syntax and allow the workflow to parse correctly so the deploy job can run.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: fc50b33c-5f8c-45a5-abc7-c076f7e5bb18
📒 Files selected for processing (1)
.github/workflows/documentation.yml
|
Just needs the stray |
|
@kmcfaul @thatblindgeye All set now. Thanks |
Summary
check-permissionsjob onworkflow_callevents (Release pushes tomain), since the orgcheck-team-membershipreusable workflow only runs for PR preview eventsdeployjob condition to usealways() && !cancelled()so it still runs whencheck-permissionsis skipped, unblocking the Release workflow'sDeploy releasejob and NPM publishesFixes the skipped Documentation and Deploy release jobs seen in Release run #3125.
Test plan
mainrunsDocumentation / Build, test & deployandDeploy releaseinstead of skipping them/deploy-previewon a PR from a team member and confirm preview deploy still worksMade with Cursor
Summary by CodeRabbit