1
1
Fork 0
mirror of https://github.com/appleboy/ssh-action.git synced 2025-03-28 14:46:19 +01:00

test variables

This commit is contained in:
GammaGames 2024-11-25 11:49:07 -07:00
parent bd67bfa881
commit 5ec72068f5

View file

@ -68,6 +68,7 @@ chmod +x ${TARGET}
echo "======= CLI Version =======" echo "======= CLI Version ======="
sh -c "${TARGET} --version" # print version sh -c "${TARGET} --version" # print version
echo "===========================" echo "==========================="
echo "STDOUT: $INPUT_CAPTURE_STDOUT"
if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then
_stdout=/dev/stdout _stdout=/dev/stdout
if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then
@ -79,6 +80,7 @@ if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then
} | tee $_stdout } | tee $_stdout
if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then if [[ "$INPUT_CAPTURE_STDOUT" == 'true' ]]; then
echo 'CAPTURING STDOUT'
echo 'stdout<<EOF' >> $GITHUB_OUTPUT echo 'stdout<<EOF' >> $GITHUB_OUTPUT
cat $_stdout >> $GITHUB_OUTPUT cat $_stdout >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT echo 'EOF' >> $GITHUB_OUTPUT