deployphp / action

GitHub Action for Deployer
MIT License
222 stars 44 forks source link

`Invalid JSON in options` error when omitting the options input entirely #77

Open SimJoSt opened 6 months ago

SimJoSt commented 6 months ago

When calling the deployer GitHub action without setting any values for the options input, the following error message appears: Invalid JSON in options It doesn't break the deployment, however an error message in a successful deployment log feels weird :) And with no actual problems occurring, I was wondering if the error detection is slightly off. I'm not familiar with the try-catch logic yet, so I cannot provide and improvement as a PR at this time.

Relevant code snippet: https://github.com/deployphp/action/blob/06aeb295d6432970d615c5551e3d941e50349c46/index.js#L116-L126

Readme section: https://github.com/deployphp/action/blob/06aeb295d6432970d615c5551e3d941e50349c46/README.md?plain=1#L26-L29

Upvote & Fund

Fund with Polar

Milkman337 commented 3 months ago

any update on this

tobz-nz commented 3 weeks ago

duplicate of #72