diff --git a/README.md b/README.md index 9006d22..f1c1ace 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Action to send dist files to a remote server with scp command - `port`: SSH Port - `user`: SSH User name - `key`: Private key +- `options` : Extra options for scp ### To publish diff --git a/action.yml b/action.yml index c131555..5f4ff64 100644 --- a/action.yml +++ b/action.yml @@ -21,9 +21,12 @@ inputs: key: description: 'Private key' required: true + options: + description: 'Extra options for scp' + required: false runs: using: 'docker' image: 'Dockerfile' branding: icon: 'upload-cloud' - color: 'blue' \ No newline at end of file + color: 'blue' diff --git a/entrypoint.sh b/entrypoint.sh index cc1f436..3a16525 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,4 +4,4 @@ echo -e "${INPUT_KEY}" >__TEMP_INPUT_KEY_FILE chmod 600 __TEMP_INPUT_KEY_FILE -scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "${INPUT_PORT}" -r ${INPUT_SRC} "${INPUT_USER}"@"${INPUT_HOST}":"${INPUT_REMOTE}" +scp -o StrictHostKeyChecking=no -v -i __TEMP_INPUT_KEY_FILE -P "${INPUT_PORT}" $INPUT_OPTIONS -r ${INPUT_SRC} "${INPUT_USER}"@"${INPUT_HOST}":"${INPUT_REMOTE}"