You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have some option to set env variables dynamically for all steps of the task.
Example 1:
version: '3'tasks:
greet:
cmds:
- export GREETING=Hello
- echo $GREETING # Currently it'll print an empty string, I'd like to receive the value `Hello`
Example 2:
version: '3'tasks:
task_name:
dynamic_env: # Currently not possiblesh: python script_that_exports_env_variables.pycmds:
- echo $DYNAMIC_VAR1 $DYNAMIC_VAR2 # Env vars set by the script
Without the feature I have to export variables and use them in one step - example:
Example 2:
version: '3'tasks:
task_name:
cmds:
- ./export_vars.sh && echo $DYNAMIC_VAR1 $DYNAMIC_VAR2
- echo $DYNAMIC_VAR1 $DYNAMIC_VAR2 # Currently vars are not available in this step
The text was updated successfully, but these errors were encountered:
I'd like to have some option to set env variables dynamically for all steps of the task.
Example 1:
Example 2:
Without the feature I have to export variables and use them in one step - example:
Example 2:
The text was updated successfully, but these errors were encountered: