-
Notifications
You must be signed in to change notification settings - Fork 44
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
Enable replace value to be an empty string #53
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hrm looks like CI isn't happy. Could you fix up the issues?
@@ -121,10 +121,6 @@ func main() { | |||
panic(errors.New("gha-find-replace: expected with.find to be a string")) | |||
} | |||
|
|||
if replaceErr != nil { | |||
panic(errors.New("gha-find-replace: expected with.replace to be a string")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we shouldn't be deleting this check and instead assign replace = ""
instead of panicing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, works for me :) changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks!
Currently it's not possible to replace the values with an empty string since it triggers this error. I think it should be possible to use an empty string as the replace value.