From e6d985b364a3d3e9dbd53d866ef21c9ccf6b5e2c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sat, 13 Dec 2025 16:16:49 +0900 Subject: [PATCH] Allow source to be unquoted --- action.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index e4e24c7..436fc8b 100644 --- a/action.yml +++ b/action.yml @@ -20,6 +20,10 @@ inputs: source: description: "Which files to copy" required: true + quote-source: + description: "Whether to quote the source string" + required: true + default: 'true' target: description: "Where on the host to copy the files" required: true @@ -98,11 +102,15 @@ runs: - name: Transfer files run: | echo "Transferring files" - rsync ${{ inputs.args }} "${{ inputs.source }}" "targethost:${{ inputs.target }}" + if [ "${{ inputs.quote-source }}" = "true" ]; then + rsync ${{ inputs.args }} "${{ inputs.source }}" "targethost:${{ inputs.target }}" + else + rsync ${{ inputs.args }} ${{ inputs.source }} "targethost:${{ inputs.target }}" + fi shell: bash - name: Cleanup run: | echo "Cleaning up" rm -f ~/.ssh/{config,key,known_hosts} || true - shell: bash \ No newline at end of file + shell: bash