Skip to content

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