Skip to content

Type of github.event.inputs.<name> of boolean inputs in workflow_dispatch event #29796

Answered by ChristopherHX
rhysd asked this question in Actions
Discussion options

You must be logged in to vote

I only found some semi official statements of some GitHub employees.

is type of github.event.inputs.<name> always a string?

Yes, booleans are always strings in that context.

GitHub fixed this with unified inputs by providing the inputs context to workflow_dispatch
You can now do the following in GitHub Actions, boolean type is only respected for the inputs context in both reusable workflow and workflow_dispatch

is-valid: ${{ inputs.is-valid }}

References / Further reading:

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@rhysd
Comment options

Answer selected by chrispat
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@PennRobotics
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants