-
If you are looking for help, please confirm the following...
Which mobile framework are you using?React Native Steps to reproduceI'd like to use current git branch name which triggered the build in codemagic.yaml file workflows: The variable here doesn't resolve. Another place I need the current branch is in script. We have .env. files in our project. We need to read variables from branch specific file.
![]() Expected resultsname should resolve to: AU dev Android Actual resultsbranch name is not resolved into the build name: AU "${CM_BRANCH}" Android Build id (optional)668fc7f66b9addc2a5a90438 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @zdary, Please find here with below sample script for sourcing env vars from
Currently, the script name and workflow name resolve to a string value rather than dynamically fetching it from an env var and setting it when you run the workflow. This is expected. |
Beta Was this translation helpful? Give feedback.
Hey @zdary,
Please find here with below sample script for sourcing env vars from
.env.dev
file.Currently, the script name and workflow name resolve to a string value rather than dynamically fetching it from an env var and setting it when you run the workflow. This is expected.