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 substitutions from "falsy" values #432

Merged
merged 2 commits into from
Aug 28, 2021

Conversation

ankon
Copy link
Contributor

@ankon ankon commented Aug 27, 2021

The substitutions feature is nice and really helpful, but it couldn't substitute values such as false, "", and 0.

This PR fixes that.

@ankon
Copy link
Contributor Author

ankon commented Aug 27, 2021

Work-around if you're hitting this: Make the substitution explicit, for example like this:

substitutions:
  myBooleanValue: !Sub [ "${value}", { value: false } ]

@bboure
Copy link
Collaborator

bboure commented Aug 28, 2021

LGTM!

Thanks a lot @ankon

@bboure bboure merged commit 804b0e6 into sid88in:master Aug 28, 2021
@ankon ankon deleted the pr/substitution-to-falsy branch November 19, 2021 10:40
@github-actions
Copy link

🎉 This PR is included in version 2.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants