Update entrypoint.sh

This commit is contained in:
JoshPiper 2020-01-05 11:19:21 +00:00 committed by GitHub
parent c5464e03ed
commit 9f59b515f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"