mirror of
https://github.com/appleboy/ssh-action.git
synced 2026-03-15 06:58:04 +00:00
feat: capture stdout and store as output (#287)
Some checks failed
testing main branch / default-user-name-password (push) Failing after 4s
testing main branch / check-ssh-key (push) Failing after 5s
testing main branch / support-key-passphrase (push) Failing after 4s
testing main branch / multiple-server (push) Failing after 4s
testing main branch / support-ed25519-key (push) Failing after 4s
testing main branch / testing-with-env (push) Failing after 4s
testing main branch / testing ipv6 (push) Failing after 23s
testing main branch / some special character (push) Failing after 4s
testing main branch / testing-capturing-output (push) Failing after 4s
testing stable version / default-user-name-password (push) Failing after 6s
testing stable version / check-ssh-key (push) Failing after 8s
testing stable version / support-key-passphrase (push) Failing after 7s
testing stable version / multiple-server (push) Failing after 5s
testing stable version / support-ed25519-key (push) Failing after 6s
testing stable version / testing-with-env (push) Failing after 10s
Some checks failed
testing main branch / default-user-name-password (push) Failing after 4s
testing main branch / check-ssh-key (push) Failing after 5s
testing main branch / support-key-passphrase (push) Failing after 4s
testing main branch / multiple-server (push) Failing after 4s
testing main branch / support-ed25519-key (push) Failing after 4s
testing main branch / testing-with-env (push) Failing after 4s
testing main branch / testing ipv6 (push) Failing after 23s
testing main branch / some special character (push) Failing after 4s
testing main branch / testing-capturing-output (push) Failing after 4s
testing stable version / default-user-name-password (push) Failing after 6s
testing stable version / check-ssh-key (push) Failing after 8s
testing stable version / support-key-passphrase (push) Failing after 7s
testing stable version / multiple-server (push) Failing after 5s
testing stable version / support-ed25519-key (push) Failing after 6s
testing stable version / testing-with-env (push) Failing after 10s
This commit is contained in:
12
action.yml
12
action.yml
@@ -75,6 +75,14 @@ inputs:
|
||||
description: "pass all environment variable to shell script."
|
||||
request_pty:
|
||||
description: "Request a pseudo-terminal from the server."
|
||||
capture_stdout:
|
||||
description: "Capture the stdout of the commands."
|
||||
default: "false"
|
||||
|
||||
outputs:
|
||||
stdout:
|
||||
description: 'Standard output of the executed commands.'
|
||||
value: ${{ steps.entrypoint.outputs.stdout }}
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@@ -84,7 +92,8 @@ runs:
|
||||
shell: bash
|
||||
env:
|
||||
GITHUB_ACTION_PATH: ${{ github.action_path }}
|
||||
- name: Run entrypoint.sh
|
||||
- id: entrypoint
|
||||
name: Run entrypoint.sh
|
||||
run: entrypoint.sh
|
||||
shell: bash
|
||||
env:
|
||||
@@ -121,6 +130,7 @@ runs:
|
||||
INPUT_PROXY_USE_INSECURE_CIPHER: ${{ inputs.proxy_use_insecure_cipher }}
|
||||
INPUT_PROXY_CIPHER: ${{ inputs.proxy_cipher }}
|
||||
INPUT_SYNC: ${{ inputs.sync }}
|
||||
INPUT_CAPTURE_STDOUT: ${{ inputs.capture_stdout }}
|
||||
|
||||
branding:
|
||||
icon: "terminal"
|
||||
|
||||
Reference in New Issue
Block a user