|
|
|
@ -35,15 +35,15 @@ jobs:
|
|
|
|
|
whoami
|
|
|
|
|
ls -al
|
|
|
|
|
|
|
|
|
|
- name: stop script if command error
|
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
|
with:
|
|
|
|
|
host: ${{ secrets.HOST }}
|
|
|
|
|
username: ${{ secrets.USERNAME }}
|
|
|
|
|
key: ${{ secrets.KEY }}
|
|
|
|
|
port: ${{ secrets.PORT }}
|
|
|
|
|
script_stop: true
|
|
|
|
|
script: "mkdir abc/def,ls -al"
|
|
|
|
|
# - name: stop script if command error
|
|
|
|
|
# uses: appleboy/ssh-action@master
|
|
|
|
|
# with:
|
|
|
|
|
# host: ${{ secrets.HOST }}
|
|
|
|
|
# username: ${{ secrets.USERNAME }}
|
|
|
|
|
# key: ${{ secrets.KEY }}
|
|
|
|
|
# port: ${{ secrets.PORT }}
|
|
|
|
|
# script_stop: true
|
|
|
|
|
# script: "mkdir abc/def,ls -al"
|
|
|
|
|
|
|
|
|
|
- name: pass environment
|
|
|
|
|
uses: appleboy/ssh-action@master
|
|
|
|
|