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
I can use this Action without supplying any inputs and the default for who-to-greet input variable is "World". Why is it documented (in action.yml and README.md) as required?
And more generally, why would Metadata syntax for GitHub Actions specification even allow required: true and default to be specified together?
The text was updated successfully, but these errors were encountered:
I believe the option to specify both required: true and default: is because the default value may not exist (if you're using one of the different actions contexts. For example, if you use the following:
If MY_ENV_VAR is not set, then the default value will be an empty string. Hence, setting this as a required input would prevent the action from trying to run without necessary inputs.
Hello! Closing this out for now, but if you're still running into any kind of issue please reopen and let me know! I will try to respond soon as I can :)
I can use this Action without supplying any inputs and the default for
who-to-greet
input variable is "World". Why is it documented (in action.yml and README.md) as required?And more generally, why would Metadata syntax for GitHub Actions
specification even allow
required: true
anddefault
to be specified together?The text was updated successfully, but these errors were encountered: