-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
script_stop: true mess up cat command #335
Comments
bumped into the same issue when using ssh-action to update nginx configs remotely this bug makes HEREDOC unusable in this context :( as a workaround I had to convert the HEREDOC into one-liner which greatly reduced the readability of the workflow |
I can confirm that Script:
Output:
Script:
Output:
|
I will disable the |
@appleboy How is that a fix? It was a very needed functionality |
I think this issue should remains open until a proper solution found |
@georgique @uchar See the PR for the sample code: result: https://github.com/appleboy/ssh-action/actions/runs/12175794110/job/33960230162
|
* ci: add SSH testing job to GitHub Actions workflow #335 (comment) - Add a new job `testing-script-stop` to the GitHub Actions workflow - Set up an SSH server using a Docker container within the new job - Capture the container's IP address and store it in the GitHub environment - Add a step to run an SSH command with stdout capture - Include a script to test conditional logic within the SSH command - Add a step to check and print the captured stdout from the SSH command Signed-off-by: Bo-Yi Wu <[email protected]> * ci: improve GitHub Actions workflow with conditional checks - Add conditional checks in GitHub Actions workflow to handle 'True' and 'False' outputs Signed-off-by: Bo-Yi Wu <[email protected]> * ci: standardize naming and validation of stdout steps - Rename `stdout` step to `stdout01` in the GitHub Actions workflow - Rename `check stdout` step to `check stdout 01` - Update references to `stdout` to `stdout01` in echo and grep commands - Add a new step `stdout02` for SSH command execution with stdout capture - Add a new step `check stdout 02` to validate the output of `stdout02` step Signed-off-by: Bo-Yi Wu <[email protected]> --------- Signed-off-by: Bo-Yi Wu <[email protected]>
Describe the bug
When I use
script_stop: true
the output of the cat command becomesYaml Config
it works fine without
script_stop: true
The text was updated successfully, but these errors were encountered: