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 parsing of boolean options that use 'true' as the default. #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

darora
Copy link

@darora darora commented Aug 4, 2021

Using _ || true will always evaluate to true, and as such, the
option can never be set to false.

Instead, we explicitly check for an unset option by comparing against the default returned by the actions/core lib ( https://github.com/actions/toolkit/blob/f0b00fd201c7ddf14e1572a10d5fb4577c4bd6a2/packages/core/src/core.ts#L122-L123 ) and only then use the default value for the option.

Fixes #28

Using `_ || true` will always evaluate to true, and as such, the
option can never be set to false.
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.

Dotfiles being copied all the time
1 participant