inconsisten comparison of boolean inputs between workflow_dispatch
and workflow_call
#3571
Labels
bug
Something isn't working
workflow_dispatch
and workflow_call
#3571
Describe the bug
Comparing a boolean input in a
workflow_call
must be done against a boolean value and always yieldsfalse
otherwise.Comparing a boolean input in a
workflow_dispatch
must be done against a string value and always yieldsfalse
otherwise.To Reproduce
GIVEN a workflow_call with:
WHEN evaluating the input
dry_run
yields:PS:
the example is from a
step..run
but this at least happens also in ajob.<id>.if
):for extra confusion serves this (correct behaving) bash comparison which works for both events:
if [[ "${{ inputs.dry_run }}" == "true" ]] ;
Expected behavior
In dependent of the event, the behavior should be the same.
Thoughts on fixing/mitigating this fast(ish)
I guess aligning this is going to breaking existing workflows.
Hence, in the meantime:
false
as a result.Runner Version and Platform
Current runner version: '2.320.0'
Ubuntu
22.04.5
LTS
The text was updated successfully, but these errors were encountered: