ssh-action/entrypoint.sh
2024-01-02 21:20:17 +00:00

14 lines
192 B
Bash
Executable File

#!/bin/sh
set -eu
set -o pipefail
export GITHUB="true"
{
sh -c "/bin/drone-ssh $*"
} | tee /tmp/outFile
stdout=$(cat /tmp/outFile)
echo "stdout=${stdout//$'\n'/\\n}" >> $GITHUB_OUTPUT