chore: Add a required source branch input to build.yml#30482
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These are purely CI/CD infrastructure changes with no impact on:
No E2E tests are needed to validate these workflow-only changes. The changes are self-contained within the build pipeline configuration and do not affect any testable application behavior. Performance Test Selection: |
Description
Some of our workflows such as
build.ymlrelies on themainworkflow file being run. This is to allow other branches to build while still locking down the workflow from the main branch. This adds a source branch input to thebuild.ymlworkflow to allow building from source branchesChangelog
CHANGELOG entry:
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
With source input

Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Medium risk because it changes how
build.ymlresolves the git ref for checkout and build metadata, which can break callers if they don’t passsource_branchor if the value differs from the triggering ref.Overview
Makes
source_brancha required input for.github/workflows/build.ymland uses it consistently for all checkouts/metadata (removing fallbacks togithub.ref_name).Adds
source_branchto manualworkflow_dispatchruns (defaulting tomain) and updatesexpo-dev-build.ymlto pass the current ref name into the reusable build workflow.Reviewed by Cursor Bugbot for commit 8bd6417. Bugbot is set up for automated code reviews on this repo. Configure here.