mirror of
https://gitea.com/actions/appleboy-ssh-action.git
synced 2024-11-22 10:09:37 +01:00
ci: enhance SSH action configuration and error handling
- Add a step to stop the script if a command error occurs using `appleboy/ssh-action@v1.0.3` - Configure SSH action with host, username, password, key, port, and other parameters - Add script to create a directory and list its contents Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
acd41e5091
commit
f05aefe351
1 changed files with 16 additions and 0 deletions
16
.github/workflows/ssh-server.yml
vendored
16
.github/workflows/ssh-server.yml
vendored
|
@ -110,3 +110,19 @@ jobs:
|
||||||
key: password
|
key: password
|
||||||
port: 2222
|
port: 2222
|
||||||
script: whoami
|
script: whoami
|
||||||
|
|
||||||
|
- name: stop script if command error
|
||||||
|
uses: appleboy/ssh-action@v1.0.3
|
||||||
|
continue-on-error: true
|
||||||
|
with:
|
||||||
|
host: ${{ env.REMOTE_HOST }}
|
||||||
|
username: linuxserver.io
|
||||||
|
password: password
|
||||||
|
key: password
|
||||||
|
port: 2222
|
||||||
|
script_stop: true
|
||||||
|
sync: true
|
||||||
|
debug: true
|
||||||
|
script: |
|
||||||
|
mkdir abc/def
|
||||||
|
ls -al
|
||||||
|
|
Loading…
Reference in a new issue