From b1b9ed628cc1af331ce764519dc9f7eebd2ab368 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 28 Sep 2019 12:41:21 +0800 Subject: [PATCH] docs: update default value --- action.yml | 2 ++ entrypoint.sh | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 8e97769..de8868c 100644 --- a/action.yml +++ b/action.yml @@ -12,8 +12,10 @@ inputs: description: 'scp password' timeout: description: 'timeout for ssh to remote host' + default: "30s" command_timeout: description: 'timeout for scp command' + default: "1m" key: description: 'content of ssh private key. ex raw content of ~/.ssh/id_rsa' key_path: diff --git a/entrypoint.sh b/entrypoint.sh index c394df8..4c53dfc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,9 +4,6 @@ set -eu export GITHUB="true" -[ -z "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s" -[ -z "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m" -[ -z "$INPUT_STRIP_COMPONENTS" ] && export INPUT_COMMAND_TIMEOUT=0 [ -n "$INPUT_STRIP_COMPONENTS" ] && export INPUT_STRIP_COMPONENTS=$((INPUT_STRIP_COMPONENTS + 0)) sh -c "/bin/drone-scp $*"