fix(CI): unblock Release workflow documentation job on main pushes#12511
fix(CI): unblock Release workflow documentation job on main pushes#12511dlabaj wants to merge 2 commits into
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>
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
| if: github.event_name == 'workflow_call' | ||
| uses: actions/checkout@v4 | ||
|
|
||
| e |
There was a problem hiding this comment.
🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win
Remove the stray e — it breaks YAML parsing for the entire workflow.
This errant token is invalid YAML and will cause the workflow file to fail parsing, preventing all jobs (including deploy) from running. This is confirmed by the actionlint failure (could not find expected ':') and directly defeats this PR's goal of unblocking the Documentation/Deploy release jobs.
🐛 Proposed fix
-e📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| e |
🧰 Tools
🪛 actionlint (1.7.12)
[error] 44-44: could not parse as YAML: could not find expected ':'
(syntax-check)
🤖 Prompt for 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.
In @.github/workflows/documentation.yml at 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.
Source: Linters/SAST tools
|
Just needs the stray |
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