Non required choice inputs on workflow_dispatch should not have a value
#156505
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Olá, entalhe. Possíveis soluções:
Se o problema persistir, pode valer a pena abrir um issue no repositório do GitHub Actions para que a equipe do GitHub possa revisar esse comportamento. |
Beta Was this translation helpful? Give feedback.
-
|
Noticing this same issue in my GHAs, choice input being non required just implicitly sets the default value to first option in 'options'. My current workaround is making the first option 'None' and setting that explicitly as the default, handling that option's logic myself. But would much prefer if the expected behavior mirrored the actual behavior |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Body
The current way the
choicetype handles a non-requiredinputon aworkflow_dispatchis unexpected.Currently, if I create a
workflow_dispatchlike shown below, where therequiredoption is set tofalse...Then I go to run the workflow from GitHub, it automatically selects the first option from the list as soon an I open the menu, see below.
In addition, this option is actually selected and passed to the
inputs.runnerTargetvalue in the workflow context.To me this current behavior functions as if the value is still required but just sets default value automatically if not explicit.
The behavior I expected from a non-required
inputwould be that the select component in the GitHub UI has anulltype value selected instead of one of the listed options. This way I can test in the workflow if the input was set, then do X otherwise Y. But as it is I cannot do this without explicitly defining anulltype value as one of theoptions. Something like...Beta Was this translation helpful? Give feedback.
All reactions