How to fail action?
See original GitHub issueHi, 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
Released it as a new version. Thanks!
@garygrossgarten, tested it by returning
exit 1
in the SSH command. Works like a charm! Thanks for merging the changes.