This is an automated email from the ASF dual-hosted git repository.
fcsaky pushed a commit to branch docs-ci-rsync-dev
in repository https://gitbox.apache.org/repos/asf/flink-kubernetes-operator.git
The following commit(s) were added to refs/heads/docs-ci-rsync-dev by this push:
new 55af16d8 deploy action fix
55af16d8 is described below
commit 55af16d80c931fc50835def4b9e85ac1f09cce46
Author: Ferenc Csaky <[email protected]>
AuthorDate: Mon Sep 29 21:47:42 2025 +0200
deploy action fix
---
.github/actions/rsync-deployments/action.yml | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/.github/actions/rsync-deployments/action.yml
b/.github/actions/rsync-deployments/action.yml
index 92fb8820..e1f2c5e2 100644
--- a/.github/actions/rsync-deployments/action.yml
+++ b/.github/actions/rsync-deployments/action.yml
@@ -7,7 +7,7 @@ inputs:
required: false
default: "--archive --compress"
path:
- description: Local source directory (always copies its content only)
+ description: Local source directory
required: true
remote_path:
description: Remote destination directory
@@ -38,15 +38,14 @@ runs:
ssh-add - <<< "${{ inputs.remote_key }}"
# SSH command with host key checking disabled (matches your reference
impl)
- RSH="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
-p ${{ inputs.remote_port }}"
+ RSH="ssh -o StrictHostKeyChecking=no -p ${{ inputs.remote_port }}"
# Resolve paths and DSN
- LOCAL_PATH="${GITHUB_WORKSPACE}/${{ inputs.path }}"
- DEST="${{ inputs.remote_path }}"
+ LOCAL_PATH="$GITHUB_WORKSPACE/${{ inputs.path }}"
DSN="${{ inputs.remote_user }}@${{ inputs.remote_host }}"
- # Deploy (copy *contents* of LOCAL_PATH into DEST)
- rsync ${{ inputs.switches }} -e "$RSH" "${LOCAL_PATH%/}/"
"$DSN:'${DEST%/}/'"
+ # Deploy
+ sh -c "rsync ${{ inputs.switches }} -e '$RSH' $LOCAL_PATH $DSN:${{
inputs.remote_path }}"
# Cleanup identities from the agent
ssh-add -D || true