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.

How to fail action?

See original GitHub issue

Hi, thanks for providing this action. Is there a way to fail the action based on the exit code of the commands that get executed on the remote host?

Im am running git push remotely and it fails because it cannot push as there the origin has diverged. After the command has finished the action still returns successfully and the workflow continues. I am using the @release version

Any idea?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
garygrossgartencommented, Feb 19, 2020

Released it as a new version. Thanks!

1reaction
bieglcommented, Feb 19, 2020

@garygrossgarten, tested it by returning exit 1 in the SSH command. Works like a charm! Thanks for merging the changes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fail a job in Github Actions? - Stack Overflow
I'd do run: exit 1 . That will simply exit with an exit code of 1, on all three platforms. Proof that it's...
Read more >
Forcing a failure in GitHub Actions based on a condition
Do you find the need to manually control a failure in a GitHub Actions step? Read this for quick method using a script...
Read more >
how to fail a github action step? #25
Hello, I've been looking at how to fail a step when running a github-script thanks!
Read more >
How to Retry Failed Steps in GitHub Action Workflows
You can test your GitHub Action workflow by pushing your changes to GitHub and going to the actions tab of the repository. You...
Read more >
Struggling to get results? 5 reasons you fail to take action
BLOCK #1 — YOU DON'T WANT TO FAIL. One of the biggest blocks to action is the fear of failure. The purpose of...
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