ci: enhance CI/CD pipeline with SSH command execution

- Add a step to execute multiline SSH commands using `appleboy/ssh-action@v1.0.3`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
pull/330/head
Bo-Yi Wu 7 months ago
parent 15b64dc891
commit a39b3cce7d
No known key found for this signature in database

@ -193,3 +193,18 @@ jobs:
script: |
whoami
ls -al
# https://github.com/appleboy/ssh-action/issues/75#issuecomment-668314271
- name: Multiline SSH commands interpreted as single lines
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ env.REMOTE_HOST }}
username: linuxserver.io
key: ${{ env.PRIVATE_KEY }}
port: 2222
passphrase: 1234
script_stop: true
script: |
ls \
-lah
use_insecure_cipher: true

Loading…
Cancel
Save