From 21c9eb7fa1bafef526b10afa27d4d8fa022dd070 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 1 May 2024 14:14:46 +0200 Subject: [PATCH] action.yml: add status messages for better user insight --- action.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 4b4e838..6750497 100644 --- a/action.yml +++ b/action.yml @@ -43,18 +43,22 @@ runs: then echo "rsync is already installed" else + echo "Updating package index" apt-get update + echo "Installing rsync" apt-get install -y rsync fi shell: bash - name: Create SSH directory run: | + echo "Creating ~/.ssh" mkdir -p ~/.ssh shell: bash - name: Install SSH config run: | + echo "Installing SSH config" echo < ~/.ssh/config Host targethost User ${{ inputs.username }} @@ -68,6 +72,7 @@ runs: - name: Install SSH known_hosts run: | + echo "Installing known_hosts" echo "${{ inputs.known-host-content }}" > ~/.ssh/known_hosts echo " StrictHostKeyChecking yes" >> ~/.ssh/config shell: bash @@ -75,6 +80,7 @@ runs: - name: Disable SSH host key checking run: | + echo "Disabling host key checking" echo " StrictHostKeyChecking no" >> ~/.ssh/config shell: bash if: ${{ inputs.known-host-content == null }} @@ -82,11 +88,14 @@ runs: - name: Install SSH key run: | + echo "Installing SSH key" echo "${{ inputs.ssh-key }}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa shell: bash if: ${{ inputs.ssh-key != null }} - name: Transfer files - run: rsync ${{ inputs.args }} "${{ inputs.source }}" "targethost:${{ inputs.target }}" + run: | + echo "Transferring files" + rsync ${{ inputs.args }} "${{ inputs.source }}" "targethost:${{ inputs.target }}" shell: bash \ No newline at end of file