diff --git a/action.yml b/action.yml index fdb51d1..d8741c7 100644 --- a/action.yml +++ b/action.yml @@ -41,6 +41,10 @@ inputs: description: 'The remote key passphrase' required: false default: '' + debug: + description: 'Debug the action' + required: false + default: 'false' runs: using: 'docker' image: 'Dockerfile' diff --git a/entrypoint.sh b/entrypoint.sh index 6ed4329..b3e6e66 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,6 +2,10 @@ set -euo pipefail +if [ "${INPUT_DEBUG:-false}" = "true" ]; then + set +fi + if [ -z "$(echo "$INPUT_REMOTE_PATH" | awk '{$1=$1};1')" ]; then echo "The remote_path can not be empty. see: github.com/Burnett01/rsync-deployments/issues/44" exit 1