-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
No way to use a multi-word git tag message? #166
Comments
I solved this for now by writing the tag message to a file in a previous step and then using Btw, thanks for making this awesome action 🙏 |
Happy to see that you found a workaround :) |
Hi, I think I've fixed the issue. I've edited the function to remove double quotes: Lines 41 to 46 in 2d95cfd
Sorry it took so long but I had to troubleshoot an issue with the compiler dependency. I'd like you to test this fix by temporarily using the - uses: EndBug/add-and-commit@git-args
... Let me know if that solves the issue! |
😅 actually it turned out that for my current use case the file method worked better, since the message will be quite long. Great if you got this fixed though since the current behavior is of course problematic. 💪 |
Not sure if removing double quotes is a good solution, since then one couldn't use |
You're right. Thanks to a guy on Stack Overflow I've gotten to this solution: Lines 33 to 60 in 23d2118
Here's an interactive version. This should correctly parse every argument. Anyway, I agree that if you're going to use a very long commit message, using a file is the best solution. |
Looks solid 👍 |
@all-contributors please add @ruohola for their bug report |
I've put up a pull request to add @ruohola! 🎉 |
Fix has been published in v7.1.2 (also v7 and latest). Thanks again for the report! |
There doesn't seem to be any way to pass a
--message
that has multiple word to the Git tag command. For example this attempt:Fails with:
and this:
results in the tag message being literally
"Release 1.0.0"
.I tried all kinds of YAML quoting, but the problem is really this function:
add-and-commit/src/util.ts
Lines 41 to 43 in f4b07e6
There is no way to pass arguments to that so that it would keep the
Release 1.0.0
as one string with no extra quotes around it:https://www.typescriptlang.org/play?ts=4.2.3#code/GYVwdgxgLglg9mABAWwIZQgCwOIygQQCcBzAZwApSpCYxiAuRKmugSkQG8AoRRQgUyghCSZrWIA6NBkzkA9OQD89ANoA9ADqkARAF0A1AB9t6vQCptrfXOLtDhxCt1cAvly4QEpOABt+EnzhicmksXAISCm0ANwBGCQAGRMQAWhTUMDA4KHR+VJTkflJSVGI8gHIAJX4-VFI8+KSE8stWAG4PL19-QODQnDwiMnJyuMTktIysnKg8tMLi0rztatr6xEbE7XLWds6wbz8AoJD0MMHI8hjNhPyp7Nz8hZKyxA0Vmv46hvGE99aOp4Dt1jn0zgMIsNRjc7pkHrMnkUXnkNFVPt8Nr9UTt2kA
The text was updated successfully, but these errors were encountered: