Hi,
I am triggering a custom action in my workflow and want that particular action to take an env variable “https_proxy”. I understand that I can set that variable in my “rules” but don’t know how to do it in “workflows”
Hi there!
To reduce project dependency on 3rd party paid services the StackStorm TSC has decided to move the Q/A from this forum to Github Discussions. This will make user experience better integrated with the native Github flow, as well as the questions closer to the community where they can provide answers.
Use 🔗 Github Discussions to ask your questions.
Hi,
I am triggering a custom action in my workflow and want that particular action to take an env variable “https_proxy”. I understand that I can set that variable in my “rules” but don’t know how to do it in “workflows”
So I figured it out, you can pass ‘env’ variable as an input
Ex.
LOAD_CONFIG:
action: stackstorm_custompack.load_config
next:
- when: <% succeeded %>
publish:
- stdout: <% result().stdout %>
- stderr: <% result().stderr %>
- rand_config: <% result().result %>
do:
- NEXT_ACTION
- when: <% failed() %>
publish:
- stderr: <% result() %>
NEXT_ACTION:
with:
items: <% ctx(array_data) %>
concurrency: 4
action: stackstorm_custompack.customaction
input:
env: { "https_proxy": "<proxy>" }
category_id: <% ctx(rand_config).get(config) %>