Skip to content

Multiple commands does not work #377

Closed
@Jamesking56

Description

@Jamesking56

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions