File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414 IP : ${{ secrets.IP }}
1515 USER : ${{ secrets.USER }}
1616 KEY : ${{ secrets.KEY }}
17- REPO : ' ssh-action-deploy'
1817 FOLDER : ' root/.deploy'
1918 RUN : ' ls -a; pwd'
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ inputs:
1717 required : true
1818 REPO :
1919 description : ' Put the name of the repository where the action is.'
20- required : true
20+ default : ${{ github.repository }}
2121 FOLDER :
2222 description : ' Name of the folder where the files are located.'
2323 required : true
5252 - name : 💧 deploy to vps...
5353 run : |
5454 cd ..
55- scp -r ${{ inputs.REPO }} ssh:/${{ inputs.FOLDER }}
55+ IN="${{ inputs.REPO }}"
56+ set -- "$IN"
57+ IFS="/"; declare -a Array=($*)
58+ scp -r ${Array[1]} ssh:/${{ inputs.FOLDER }}
5659 shell : bash
5760 - name : 🍷 Executing commands...
5861 run : ssh ssh "${{ inputs.RUN }}"
You can’t perform that action at this time.
0 commit comments