From 384d12c1a479148073699ce9036a746b01ff7f38 Mon Sep 17 00:00:00 2001 From: Jesse Date: Tue, 2 Jan 2024 21:20:17 +0000 Subject: [PATCH] remove stderr --- action.yml | 2 -- entrypoint.sh | 5 ++--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 6b55ee0..87cffc8 100644 --- a/action.yml +++ b/action.yml @@ -70,8 +70,6 @@ inputs: outputs: stdout: description: 'Standard output of the executed commands.' - stderr: - description: 'Standard error of the executed commands.' runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index 584336a..e17cbf0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,14 +1,13 @@ #!/bin/sh set -eu +set -o pipefail export GITHUB="true" { sh -c "/bin/drone-ssh $*" -} 2> /tmp/errFile | tee /tmp/outFile +} | tee /tmp/outFile stdout=$(cat /tmp/outFile) -stderr=$(cat /tmp/errFile) echo "stdout=${stdout//$'\n'/\\n}" >> $GITHUB_OUTPUT -echo "stderr=${stderr//$'\n'/\\n}" >> $GITHUB_OUTPUT