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
Having the possibility to define environment variables in the Actions is crucial in most situations, but it would be really nice to have the possibility to specify these variables from a file, so they can be reused across multiple actions without the need of replicate the list of env vars in each action.
It would be something like this:
---
name: "my_script"runner_type: "remote-shell-cmd"description: "Remote CMD with envs form file"enabled: trueenv_file: "/path/to/my/env/file"
Or as a parameter:
---
name: "my_script"runner_type: "remote-shell-cmd"description: "Remote CMD with envs form file"enabled: trueparameters:
env_file:
type: "string"default: "/path/to/my/env/file"
The text was updated successfully, but these errors were encountered:
I think we can write an application package, put the environment variable configuration in the package configuration, and then use this configuration for all the actions in this package.
A workaround to get this functionality would be to provide a json file with the environment variables that is read in an action prior to calling core.remote and then pass the contents via the env parameter.
Load the environment file. StackStorm will automatically deserialise JSON content from stdout. The deserialised JSON can be published for use in subsequent actions.
Having the possibility to define environment variables in the Actions is crucial in most situations, but it would be really nice to have the possibility to specify these variables from a file, so they can be reused across multiple actions without the need of replicate the list of env vars in each action.
It would be something like this:
Or as a parameter:
The text was updated successfully, but these errors were encountered: