Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Workflow input have a confusing presentation. It is hard to differentiate between having multiple input parameters or a single array parameter.
For example:
1,2,3
the input would be represented as[1,2,3]
[1,2,3]
the input would also be represented as[1,2,3]
This happens because the logic ignores adding array brackets if there is a single parameter, which causes confusion when the input is a single parameter of type array, as it is not clear if this is a single array or multiple params.
The fix is to add array brackets around parameters in cases.
Also the logic was revisited as it used to depend on
,
to separate input parameters which can break if the parameters themselves included commas.Screenshots
Single parameter before the changes
Single parameter after the changes
Multiparameter before & after changes