-
HI, I noticed that The blog post says you define them the same way as action inputs, but it doesn’t explicitly say that the environmental variables will be set. Since it uses the action inputs documentation as a reference though, I almost expected them to work the same way. The GitHub BlogGitHub Actions: Manual triggers with workflow_dispatch The GitHub BlogGitHub Actions: Manual triggers with workflow_dispatch The documentation describes the format of the env variables for actions: Here is a run showing it is not set dogboydog/manual-workflow-testTesting new workflow_dispatch event in GitHub Actions - dogboydog/manual-workflow-test GitHub dogboydog/manual-workflow-testTesting new workflow_dispatch event in GitHub Actions - dogboydog/manual-workflow-test Either way it can be set manually through the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Yes, currently GitHub does not automatically create environment variables for the inputs of the ‘workflow_dispatch’ trigger. If you want to use the inputs as environment variables in the workflow, you can set the inputs as the workflow global environment variables via the ‘env’ key.
However, as mentioned in the docs, you also need to note that:
If your projects really need the feature that GitHub can automatically create environment variables for the inputs of the ‘workflow_dispatch’ trigger, I recommend that you can directly report a feature request here. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I submitted the request. |
Beta Was this translation helpful? Give feedback.
@dogboydog,
Yes, currently GitHub does not automatically create environment variables for the inputs of the ‘workflow_dispatch’ trigger.
If you want to use the inputs as environment variables in the workflow, you can set the inputs as the workflow global environment variables via the ‘env’ key.
For example:
However, as mentioned in the docs, you also need to note that: