From 3dbd45983d5ad1e8051637fac7888d11611de366 Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 12:32:27 -0400 Subject: [PATCH 1/8] Testing compatibility flag. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 70aa406..37ea3a2 100644 --- a/action.yml +++ b/action.yml @@ -56,7 +56,7 @@ runs: IN="${{ inputs.REPO }}" set -- "$IN" IFS="/"; declare -a Array=($*) - scp -r ${Array[1]} ssh:/${{ inputs.FOLDER }} + scp -O -r ${Array[1]} ssh:/${{ inputs.FOLDER }} shell: bash - name: 🍷 Executing commands... if: ${{ inputs.RUN }} From 7211bf4ec61a7facbb451cf8603a084e643bccdc Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 12:54:10 -0400 Subject: [PATCH 2/8] Testing condithional logic. --- action.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 37ea3a2..c094ce1 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,11 @@ inputs: RUN: description: "Specify the commands to be executed after the deploy." required: false + COMPATABILITY: + description: "Add the '-O' compatability flag to the SCP command for targets with older verions of OPENSSH (ie: Ubuntu 14.X)." + type: boolean + default: false + required: false runs: using: "composite" @@ -51,13 +56,23 @@ runs: ssh ssh rm -rf "${{ inputs.FOLDER }}"; shell: bash - name: 💧 deploy to vps... + if: ${{ inputs.COMPATABILITY == false }} + run: | + cd .. + IN="${{ inputs.REPO }}" + set -- "$IN" + IFS="/"; declare -a Array=($*) + scp -r ${Array[1]} ssh:/${{ inputs.FOLDER }} + shell: bash + - name: 💧 deploy to vps with compatability... + if: ${{ inputs.COMPATABILITY == true }} run: | cd .. IN="${{ inputs.REPO }}" set -- "$IN" IFS="/"; declare -a Array=($*) scp -O -r ${Array[1]} ssh:/${{ inputs.FOLDER }} - shell: bash + shell: bash - name: 🍷 Executing commands... if: ${{ inputs.RUN }} run: ssh ssh "${{ inputs.RUN }}" From 94126efd31f11b701b72bd1f469bbe5b1de12a7e Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 13:52:45 -0400 Subject: [PATCH 3/8] Testing condithional logic. --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/action.yml b/action.yml index c094ce1..fe1bb7f 100644 --- a/action.yml +++ b/action.yml @@ -33,6 +33,12 @@ inputs: runs: using: "composite" steps: + - name: Print Debugging Info + shell: bash + run: | + echo "ENVs:${{ toJSON(env) }}" + echo "INPUTs:${{ toJSON(inputs) }}" + echo "VARs:${{ toJSON(vars) }}" - name: 🗿 Creating ssh files... run: | mkdir -p ~/.ssh/ From db1df326025e982a9eaadb66ca8886c05ff96d07 Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 13:54:13 -0400 Subject: [PATCH 4/8] Testing condithional logic. --- action.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/action.yml b/action.yml index fe1bb7f..72c3870 100644 --- a/action.yml +++ b/action.yml @@ -38,7 +38,6 @@ runs: run: | echo "ENVs:${{ toJSON(env) }}" echo "INPUTs:${{ toJSON(inputs) }}" - echo "VARs:${{ toJSON(vars) }}" - name: 🗿 Creating ssh files... run: | mkdir -p ~/.ssh/ From b998bf09b7a8ce1d314c1c9425e04b7a94ba4d81 Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 13:57:14 -0400 Subject: [PATCH 5/8] Testing condithional logic. --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 72c3870..033b89d 100644 --- a/action.yml +++ b/action.yml @@ -61,7 +61,7 @@ runs: ssh ssh rm -rf "${{ inputs.FOLDER }}"; shell: bash - name: 💧 deploy to vps... - if: ${{ inputs.COMPATABILITY == false }} + if: ${{ !inputs.COMPATABILITY }} run: | cd .. IN="${{ inputs.REPO }}" @@ -70,7 +70,7 @@ runs: scp -r ${Array[1]} ssh:/${{ inputs.FOLDER }} shell: bash - name: 💧 deploy to vps with compatability... - if: ${{ inputs.COMPATABILITY == true }} + if: ${{ inputs.COMPATABILITY }} run: | cd .. IN="${{ inputs.REPO }}" From d3b9b26d12cceeb497d4ea9e1da699044aac87ff Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 15:12:23 -0400 Subject: [PATCH 6/8] Testing condithional logic. --- action.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 033b89d..3e8c30e 100644 --- a/action.yml +++ b/action.yml @@ -27,8 +27,11 @@ inputs: COMPATABILITY: description: "Add the '-O' compatability flag to the SCP command for targets with older verions of OPENSSH (ie: Ubuntu 14.X)." type: boolean - default: false required: false + default: 'false' + options: + - true + - false runs: using: "composite" @@ -61,7 +64,7 @@ runs: ssh ssh rm -rf "${{ inputs.FOLDER }}"; shell: bash - name: 💧 deploy to vps... - if: ${{ !inputs.COMPATABILITY }} + if: inputs.COMPATABILITY == 'false' run: | cd .. IN="${{ inputs.REPO }}" @@ -70,7 +73,7 @@ runs: scp -r ${Array[1]} ssh:/${{ inputs.FOLDER }} shell: bash - name: 💧 deploy to vps with compatability... - if: ${{ inputs.COMPATABILITY }} + if: inputs.COMPATABILITY == 'true' run: | cd .. IN="${{ inputs.REPO }}" From 7fdd333eb6d78265c6fa374b99c0289b998a831f Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 15:36:40 -0400 Subject: [PATCH 7/8] Testing condithional logic. --- action.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 3e8c30e..047e7cd 100644 --- a/action.yml +++ b/action.yml @@ -26,12 +26,8 @@ inputs: required: false COMPATABILITY: description: "Add the '-O' compatability flag to the SCP command for targets with older verions of OPENSSH (ie: Ubuntu 14.X)." - type: boolean required: false - default: 'false' - options: - - true - - false + type: boolean runs: using: "composite" From fff1b5770a245c3593ebec73f202f4f3840e5b24 Mon Sep 17 00:00:00 2001 From: Jeremiah Messerer Date: Wed, 23 Oct 2024 17:06:39 -0400 Subject: [PATCH 8/8] Remove debugging info. --- action.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/action.yml b/action.yml index 047e7cd..7d8e4f8 100644 --- a/action.yml +++ b/action.yml @@ -32,11 +32,6 @@ inputs: runs: using: "composite" steps: - - name: Print Debugging Info - shell: bash - run: | - echo "ENVs:${{ toJSON(env) }}" - echo "INPUTs:${{ toJSON(inputs) }}" - name: 🗿 Creating ssh files... run: | mkdir -p ~/.ssh/