Skip to content

Commit a39b3cc

Browse files
committed
ci: enhance CI/CD pipeline with SSH command execution
- Add a step to execute multiline SSH commands using `appleboy/[email protected]` Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 15b64dc commit a39b3cc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/ssh-server.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,18 @@ jobs:
193193
script: |
194194
whoami
195195
ls -al
196+
197+
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
198+
- name: Multiline SSH commands interpreted as single lines
199+
uses: appleboy/[email protected]
200+
with:
201+
host: ${{ env.REMOTE_HOST }}
202+
username: linuxserver.io
203+
key: ${{ env.PRIVATE_KEY }}
204+
port: 2222
205+
passphrase: 1234
206+
script_stop: true
207+
script: |
208+
ls \
209+
-lah
210+
use_insecure_cipher: true

0 commit comments

Comments
 (0)