File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ inputs:
24
24
RUN :
25
25
description : " Specify the commands to be executed after the deploy."
26
26
required : false
27
+ COMPATABILITY :
28
+ description : " Add the '-O' compatability flag to the SCP command for targets with older verions of OPENSSH (ie: Ubuntu 14.X)."
29
+ required : false
30
+ type : boolean
27
31
28
32
runs :
29
33
using : " composite"
@@ -51,13 +55,23 @@ runs:
51
55
ssh ssh rm -rf "${{ inputs.FOLDER }}";
52
56
shell : bash
53
57
- name : 💧 deploy to vps...
58
+ if : inputs.COMPATABILITY == 'false'
54
59
run : |
55
60
cd ..
56
61
IN="${{ inputs.REPO }}"
57
62
set -- "$IN"
58
63
IFS="/"; declare -a Array=($*)
59
64
scp -r ${Array[1]} ssh:/${{ inputs.FOLDER }}
60
- shell : bash
65
+ shell : bash
66
+ - name : 💧 deploy to vps with compatability...
67
+ if : inputs.COMPATABILITY == 'true'
68
+ run : |
69
+ cd ..
70
+ IN="${{ inputs.REPO }}"
71
+ set -- "$IN"
72
+ IFS="/"; declare -a Array=($*)
73
+ scp -O -r ${Array[1]} ssh:/${{ inputs.FOLDER }}
74
+ shell : bash
61
75
- name : 🍷 Executing commands...
62
76
if : ${{ inputs.RUN }}
63
77
run : ssh ssh "${{ inputs.RUN }}"
You can’t perform that action at this time.
0 commit comments