Set global ENV vars within a task #8089
Unanswered
jackfarzan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
that's not how env vars work |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using mise to run a large amount of build and testing tasks within a monorepo. I need to generate a particular API token to run subsequent testing tasks. However, I'm having trouble getting that token to persist between tasks.
I considered using my task shell script as a source file for the envs of the relevant tasks, but I would prefer to have these values fetched in a task itself, especially since I'll need to use a slightly different implementation for windows.
In brief, what I'm trying to do is:
get_token.sh looks like:
I need both API_KEY and AUTH to persist across subsequent tasks. What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions