mirror of
https://githubfast.com/appleboy/ssh-action
synced 2024-10-31 15:46:30 +00:00
remove stderr
This commit is contained in:
parent
a3c6d747c4
commit
384d12c1a4
@ -70,8 +70,6 @@ inputs:
|
|||||||
outputs:
|
outputs:
|
||||||
stdout:
|
stdout:
|
||||||
description: 'Standard output of the executed commands.'
|
description: 'Standard output of the executed commands.'
|
||||||
stderr:
|
|
||||||
description: 'Standard error of the executed commands.'
|
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
export GITHUB="true"
|
export GITHUB="true"
|
||||||
|
|
||||||
{
|
{
|
||||||
sh -c "/bin/drone-ssh $*"
|
sh -c "/bin/drone-ssh $*"
|
||||||
} 2> /tmp/errFile | tee /tmp/outFile
|
} | tee /tmp/outFile
|
||||||
|
|
||||||
stdout=$(cat /tmp/outFile)
|
stdout=$(cat /tmp/outFile)
|
||||||
stderr=$(cat /tmp/errFile)
|
|
||||||
echo "stdout=${stdout//$'\n'/\\n}" >> $GITHUB_OUTPUT
|
echo "stdout=${stdout//$'\n'/\\n}" >> $GITHUB_OUTPUT
|
||||||
echo "stderr=${stderr//$'\n'/\\n}" >> $GITHUB_OUTPUT
|
|
||||||
|
Loading…
Reference in New Issue
Block a user