Not able to run multiline commands with "run: |"
See original GitHub issueTrying 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:
- Created 3 years ago
- Reactions:9
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jjshoe Thanks. Merged and deployed.
@s8sachin @cclauss @hybridx - I put up a PR that I believe should fix this. Waiting to hear from @GabrielBB.