-
Notifications
You must be signed in to change notification settings - Fork 19
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
Echo SSH output to the GitHub Action logs #29
Labels
enhancement
New feature or request
Comments
This was referenced Oct 7, 2022
8 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TL;DR
Add a
show_ssh_output
input to the action, which shows the SSH stdout and stderr in the GitHub Action logs. Ideally, the output should be shown live, as it arrives over SSH.Detailed design
This feature allows the
ssh-compute
action to replace a manual call togcloud compute ssh
, which echoes the SSH output as it arrives, and has no output size limits.Example usage:
Expected behaviour:
Hello world
is echoed live by thecompute-ssh
step, without the need for an extra step.Additional information
GitHub Actions outputs are limited to 1 MB, so they can't be used for large logs:
https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-docker-container-and-javascript-actions
One alternative is using artifacts, but they aren't available live, only after the job has finished:
https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
The text was updated successfully, but these errors were encountered: