question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to run multiline commands with "run: |"

See original GitHub issue

Trying to run multiline gives out error Command:

- name: yarn test
        uses: GabrielBB/xvfb-action@v1.2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          run: |
            yarn package-ci
            yarn lint
            yarn tsc

Error:

error Command "package-ci\nyarn" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Error on os macos-latest and ubuntu-latest, but works fine on windows-latest Any solution for this please ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
GabrielBBcommented, Nov 12, 2021

@jjshoe Thanks. Merged and deployed.

2reactions
jjshoecommented, Nov 11, 2021

@s8sachin @cclauss @hybridx - I put up a PR that I believe should fix this. Waiting to hear from @GabrielBB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

windows - How to write a multiline command? - Stack Overflow
Solution 1 In CMD, Use ^ , example docker run -dp 3000:3000 ^ - ...
Read more >
Unable to do a multiline run command #25878 - GitHub
If I make the run command a single line everything works, but as soon as I attempt multi line commands it always fails...
Read more >
Running Multi-Line Shell Code at Once From Single Prompt
In this tutorial, we'll look at various methods for running multi-line commands from a single command-line prompt. 2. Multi-Line Code Techniques.
Read more >
Cannot enter long commands in terminal - Apple Community
To enter multiple lines before running any of them, use Shift+Enter or Shift+Return after typing a line. This is useful, for example, ...
Read more >
How to run multiple commands one after another in cmd
Try using the conditional execution & or the && between each command either with a copy and paste into the cmd.exe window or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found