Setup environment variable with export command #26013
-
I am not sure if this is even possible is it? If it is, how do I change this to work?
this didn’t seem to be valid either:
Error: |
Beta Was this translation helpful? Give feedback.
Answered by
airtower-luna
Sep 5, 2020
Replies: 1 comment
-
The problem is that each
After that either of the references should work. Or, if you need
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem is that each
run
step gets its own shell instance, so theexport
doesn’t carry over. To set an environment variable for the rest of the job you need to use theset-env
workflow command:After that either of the references should work. Or, if you need
CR_PAT
only in that one step you could use anenv
property for the step: