File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 66 name : Build
77 runs-on : ubuntu-latest
88 steps :
9+ - name : checkout
10+ uses : actions/checkout@v1
11+
912 - name : executing remote ssh commands using password
10- uses : appleboy/ssh-action@master
13+ uses : ./
1114 with :
1215 host : ${{ secrets.HOST }}
1316 username : ${{ secrets.USERNAME }}
1619 script : whoami
1720
1821 - name : executing remote ssh commands using ssh key
19- uses : appleboy/ssh-action@master
22+ uses : ./
2023 with :
2124 host : ${{ secrets.HOST }}
2225 username : ${{ secrets.USERNAME }}
2528 script : whoami
2629
2730 - name : multiple command
28- uses : appleboy/ssh-action@master
31+ uses : ./
2932 with :
3033 host : ${{ secrets.HOST }}
3134 username : ${{ secrets.USERNAME }}
3639 ls -al
3740
3841 # - name: stop script if command error
39- # uses: appleboy/ssh-action@master
42+ # uses: ./
4043 # with:
4144 # host: ${{ secrets.HOST }}
4245 # username: ${{ secrets.USERNAME }}
4851 # ls -al
4952
5053 - name : pass environment
51- uses : appleboy/ssh-action@master
54+ uses : ./
5255 env :
5356 FOO : " BAR"
5457 with :
6265 echo "I am $BAR, thanks"
6366
6467 - name : pass multiple environment
65- uses : appleboy/ssh-action@master
68+ uses : ./
6669 env :
6770 FOO : " BAR"
6871 BAR : " FOO"
7982 echo "sha: $SHA"
8083
8184 - name : ssh key passphrase
82- uses : appleboy/ssh-action@master
85+ uses : ./
8386 with :
8487 host : ${{ secrets.HOST }}
8588 username : ${{ secrets.USERNAME }}
You can’t perform that action at this time.
0 commit comments