CLI exe is unable to execute in GitHub Actions' shell with an option value containing a whitespace #140487
Replies: 1 comment
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
Hi all,
I have a simple CLI executable running in GitHub Actions which prints a dictionary of given parameter name and string value pairs:
Example command:
./simple-runner.exe --param one=alpha --param two="bravo charlie"
Expected response:
{'one': 'alpha', 'two': 'bravo charlie'}
The exe should correctly process a string containing whitespaces.
However, when executing the CLI in an Actions workflow, it somehow splits at the whitespace between
bravo
andcharlie
ignoring the quotation marks:Executing: D:\a\_temp/downloads/simple-runner.exe --param one=alpha --param two="bravo charlie"
+- Error ---------------------------------------------------------------------+
| Got unexpected extra argument (charlie") |
+-----------------------------------------------------------------------------+
Actions Result: link
I've tried running the CLI exe locally on cmd, powershell and bash yet it runs just fine giving the expected response.
Could this be a bug with the Actions shell or am I missing something?
I also included the CLI source code(built with pyinstaller) in my repo for reference.
Many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions