From 9f59b515f6bac904231e6c5faa4897295b3b7a0e Mon Sep 17 00:00:00 2001 From: JoshPiper <32164094+JoshPiper@users.noreply.github.com> Date: Sun, 5 Jan 2020 11:19:21 +0000 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2a2ff39..a95b8b0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,10 +1,9 @@ #!/bin/sh -set -eu - # Start the SSH agent and load key. source agent-start "$GITHUB_ACTION" echo "$INPUT_REMOTE_KEY" | agent-add -# Do deployment +# Add strict errors and deploy. +set -eu sh -c "rsync $INPUT_SWITCHES -e 'ssh -o StrictHostKeyChecking=no -p $INPUT_REMOTE_PORT $INPUT_RSH' $GITHUB_WORKSPACE/$INPUT_PATH $INPUT_REMOTE_USER@$INPUT_REMOTE_HOST:$INPUT_REMOTE_PATH"