Environment variables (or .env files) #26541
-
I see that Github actions support global environment variables at the job level right now. However, suppose those variables are in a .env file. Would there be some way to dump that into GITHUB_ENV file so that it can be used as an environment variable there? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Assuming your
If the |
Beta Was this translation helpful? Give feedback.
-
Sorry, I somehow didn’t put the key word here, at the job level I mean. You can’t |
Beta Was this translation helpful? Give feedback.
-
You mean before any steps get run? There’s no option for that. Maybe because the On the other hand settings in |
Beta Was this translation helpful? Give feedback.
You mean before any steps get run? There’s no option for that. Maybe because the
.env
file wouldn’t be available before checkout anyway?On the other hand settings in
GITHUB_ENV
remain for the rest of the job, so the effect is very similar.