-
Is there any way to dynamically add inputs to an Action? Or for the Action itself to access the environment variables defined in the workflow that it is being called from? I would like to use the same Action which requires different environment variables per app that I’m using them on, so I can’t define them all as inputs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can try using the workflow command “set-env” to create or update an environment variable for any steps running next in a job. All the subsequent steps in the same job have access to the new value.
when using the set-env command, you also can call the value of another variable to set the new value of the environment variable.
|
Beta Was this translation helpful? Give feedback.
@jswny,
You can try using the workflow command “set-env” to create or update an environment variable for any steps running next in a job. All the subsequent steps in the same job have access to the new value.
A simple demo: