Set Environment Variable from fastlane and access it in another Step

Hello,

I’m having a hard time getting this right…
I’ve created a Workflow Environment Variable.
Then, in my workflow, I have a step that runs a Fastlane lane, in which I’d like to SET this Env Var from.
In my lane I’m doing

ENV[“MY_VAR”] = “Some value”

then in the subsequent STEP of my workflow I have Script step that echos it like so

echo $MY_VAR

That doesn’t work. The echoed value is the default value set on Bitrise.
What I am missing?

Thanks in advance.

@LucasP this can be done using envman
https://devcenter.bitrise.io/tips-and-tricks/expose-environment-variable/

envman add --key MY_RELEASE_NOTE --value "This is the release note"
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.