feat: add debug input to action and enable debug mode in entrypoint script

This commit is contained in:
Burnett01 2025-09-01 13:41:37 +00:00
parent 93eda1c97c
commit 7293bea8ec
2 changed files with 8 additions and 0 deletions

View file

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

View file

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