Assigning shell value to environment variable? #27199
-
I am needing to set an environment variable based on an execution of shell script, but I haven’t been able to get it to work.
values aren’t listed in the I did also try:
but that is invalid syntax per YAML. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
airtower-luna
Dec 11, 2020
Replies: 1 comment
-
Each
The For details, see Setting an environment variable. |
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
Each
run
step gets its own shell instance, soexport
ed variables don’t carry over. If you want that, you need to write to theGITHUB_ENV
environment file, e.g.:The
VERSION
andDATE
environment variables will be available in all subsequent steps of the job.For details, see Setting an environment variable.