Closed
Description
Describe the bug
Running multiple commands attempts to run it all as one line, rather than separate commands:
cd test cat test.txt
Causing this error: bash: line 1: cd: too many arguments
Yaml Config
name: remote ssh command
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: appleboy/ssh-action@v1.2.2
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd test
cat test.txt
Related environment
Hosting Provider: 20i
Shared hosting, cannot access SSH config information