Update entrypoint.sh

This commit is contained in:
意琦行 2022-06-11 18:59:22 +08:00 committed by GitHub
parent 9f40ee1996
commit ee89d3e8e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,4 +14,4 @@ LOCAL_PATH="$GITHUB_WORKSPACE/$INPUT_PATH"
DSN="$INPUT_REMOTE_USER@$INPUT_REMOTE_HOST"
# Deploy.
sh -c "rsync $SWITCHES -e '$RSH' $LOCAL_PATH $DSN:$INPUT_REMOTE_PATH"
sh -c "mkdir -p $INPUT_REMOTE_PATH && rsync $SWITCHES -e '$RSH' $LOCAL_PATH $DSN:$INPUT_REMOTE_PATH"