From 0bbc337026b05a395a503893980bca49e4c39f25 Mon Sep 17 00:00:00 2001 From: Jonathan Hutchinson Date: Thu, 11 Jul 2024 15:01:35 +0100 Subject: [PATCH] prefix local path to .deploy-running --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index d272449..d93585c 100644 --- a/action.yml +++ b/action.yml @@ -355,13 +355,13 @@ runs: touch "${local_path_slash}.deploy-running" if [ "${input_sync}" == "full" ]; then - ${proxy_cmd} lftp -c "put -O \"${remote_path_unslash}\" .deploy-running; + ${proxy_cmd} lftp -c "put -O \"${remote_path_unslash}\" \"${local_path_slash}.deploy-running\"; mirror --exclude-glob=.git*/ --max-errors=10 --reverse ${{inputs.ftp-mirror-options}} ${local_path_unslash} ${remote_path_unslash}; rm -f \"${remote_path_slash}.deploy-running\"; ${{inputs.ftp-post-sync-commands}}" else ${proxy_cmd} lftp -c "lcd \"${local_path_unslash}\"; - put -O \"${remote_path_unslash}\" .deploy-running; + put -O \"${remote_path_unslash}\" \"${local_path_slash}.deploy-running\"; mput -d -O \"${remote_path_unslash}\" .deploy-revision $(awk '{ printf "\"%s\" ", $0 }' ~/files_to_upload); rm -f \"${remote_path_slash}.deploy-check\" $(awk -v REMOTEPATH=\"${remote_path_slash}\" '{ printf "\"%s%s\" ", REMOTEPATH, $0 }' ~/files_to_delete); rm -f \"${remote_path_slash}.deploy-running\";