Skip to content

Something seems to have broken with omitting tokens #103

Answered by Kir-Antipov
MattiDragon asked this question in Q&A
Discussion options

You must be logged in to vote

I don't see it being passed into the action, so I would expect it to be correct

Sadly, there's no such thing as an input not being passed to the action. GitHub always passes some value to every input of the action. If you haven't specified any - too bad, because some Microsoft genius decided that null and undefined, both describing an "unset" value in terms of JS, are not enough - to represent a missing value, GitHub Actions use an empty string, making it impossible to distinguish between an omitted input and an explicitly provided empty string.

You may not see it, because, unlike actions, GitHub itself, as the provider of these values, can distinguish between specified and unspecified …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

Answer selected by MattiDragon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants