mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
feat: add debug input to action and enable debug mode in entrypoint script
This commit is contained in:
parent
93eda1c97c
commit
7293bea8ec
2 changed files with 8 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue