Repository navigation
[WEB-10192] fix: pass build-branch inputs through env - #10296
Conversation
Dispatch inputs, the ref name and job outputs were expanded into run scripts by Actions before the shell parsed them. Read them as shell variables instead, the way feature-deployment.yml already does.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
sriramveeraghanta
left a comment
There was a problem hiding this comment.
LGTM. Every variable set_env_variables reads is defined in the workflow env, and no ${{ }} is left in a run script. Worth the branch build and release dry run the description mentions.
Dispatch inputs, the ref name and job outputs were expanded into run scripts by Actions before the shell parsed them. Read them as shell variables instead, the way feature-deployment.yml already does.
Description
build-branch.ymlexpanded${{ env.* }}values (workflow_dispatch inputs and the ref name) and job outputs directly insiderunscripts, so Actions substituted them into the script text before the shell parsed it.set_env_variablesstep now reads the workflow-level env vars as shell variables ($BUILD_TYPE,$RELEASE_VERSION,$TARGET_BRANCH, …).needs.branch_build_setup.outputs.*in their scripts bind those outputs through a stepenv:block.feature-deployment.ymlalready follows this pattern. No change to what the workflow builds or tags.Type of Change
Screenshots and Media (if applicable)
Test Scenarios
set_env_variablesscript locally under bash with a normal release input (v1.5.0onpreview): outputs are the same as before (BUILD_RELEASE=true,RELEASE_VERSION=v1.5.0, both platforms in the matrix).runscript contains a${{ }}expression any more.Not run on GitHub: please trigger a branch build and a release dry run before merging.
References
Created with Claude Code
Summary by CodeRabbit