Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the issue that input values seems to be strings rather than e.g. booleans #20

Merged
merged 1 commit into from
Jan 13, 2021

Conversation

YannickJadoul
Copy link
Contributor

@YannickJadoul YannickJadoul commented Jan 13, 2021

Seems I made a mistake in #18. The values of an action's input are always strings, so even when passing false (the boolean), that's going to be 'false' (the string) and thus interpreted as true (the boolean).

Found in pybind/pybind11#2792, demonstrating the fix. Compare the following two commits:

Sorry for not catching this in #18! The default values for the inputs action.yml are apparently booleans...

action.yml Outdated Show resolved Hide resolved
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@asottile asottile merged commit 2183136 into deadsnakes:master Jan 13, 2021
@YannickJadoul YannickJadoul deleted the fix-input-boolean branch January 13, 2021 23:58
@YannickJadoul
Copy link
Contributor Author

Thanks, once again!

hugovk pushed a commit to hugovk/action that referenced this pull request Feb 8, 2024
Update example to newer actions/* versions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants