Hello, I am using bitrise to build android aab.
I wonder if ‘Available Environment Variables’ is editable.
For example, when the actual value of $BITRISE_GIT_TAG is “HELLO_WORLD”, I want to use only the value of “HELLO” before the _, is it possible?
Hello, I am using bitrise to build android aab.
I wonder if ‘Available Environment Variables’ is editable.
For example, when the actual value of $BITRISE_GIT_TAG is “HELLO_WORLD”, I want to use only the value of “HELLO” before the _, is it possible?
You can edit Env Vars using bash
eg. https://stackoverflow.com/a/29903172
Then store the new Env Var using Envman
export MY_GIT_TAG=$(echo $BITRISE_GIT_TAG | cut -d "_" -f 1)
envman add --key MY_GIT_TAG --value "$MY_GIT_TAG"
Envman makes the Env Var you create available to subsequent steps in your workflow
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.