diff --git a/action.yml b/action.yml index 70aa406..7d8e4f8 100644 --- a/action.yml +++ b/action.yml @@ -24,6 +24,10 @@ 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)." + required: false + type: boolean runs: using: "composite" @@ -51,13 +55,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 + 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 - name: 🍷 Executing commands... if: ${{ inputs.RUN }} run: ssh ssh "${{ inputs.RUN }}"