Skip to content

Commit

Permalink
rebase upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Lieberg committed Apr 3, 2024
1 parent 551964e commit 28c7241
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ inputs:
request_pty:
description: "Request a pseudo-terminal from the server."

outputs:
stdout:
description: 'Standard output of the executed commands.'
stderr:
description: 'Standard error of the executed commands.'

runs:
using: "composite"
steps:
Expand Down
10 changes: 9 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,12 @@ TARGET="${GITHUB_ACTION_PATH}/${CLIENT_BINARY}"
echo "Will download ${CLIENT_BINARY} from ${DOWNLOAD_URL_PREFIX}"
curl -fL --retry 3 --keepalive-time 2 "${DOWNLOAD_URL_PREFIX}/${CLIENT_BINARY}" -o ${TARGET}
chmod +x ${TARGET}
sh -c "${TARGET} $*"

{
sh -c "${TARGET} $*"
} 2> /tmp/errFile | tee /tmp/outFile

stdout=$(cat /tmp/outFile)
stderr=$(cat /tmp/errFile)
echo "stdout=${stdout//$'\n'/\\n}" >> $GITHUB_OUTPUT
echo "stderr=${stderr//$'\n'/\\n}" >> $GITHUB_OUTPUTe)

0 comments on commit 28c7241

Please sign in to comment.