Skip to content

Commit f05aefe

Browse files
committed
ci: enhance SSH action configuration and error handling
- Add a step to stop the script if a command error occurs using `appleboy/[email protected]` - 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 <[email protected]>
1 parent acd41e5 commit f05aefe

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ssh-server.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,19 @@ jobs:
110110
key: password
111111
port: 2222
112112
script: whoami
113+
114+
- name: stop script if command error
115+
uses: appleboy/[email protected]
116+
continue-on-error: true
117+
with:
118+
host: ${{ env.REMOTE_HOST }}
119+
username: linuxserver.io
120+
password: password
121+
key: password
122+
port: 2222
123+
script_stop: true
124+
sync: true
125+
debug: true
126+
script: |
127+
mkdir abc/def
128+
ls -al

0 commit comments

Comments
 (0)