My task is as follows: Upon receive of a new commits (by single push), it is necessary to perform a github action, which would send the task to test on a test server via ssh (with git pull
and npm test
). Then, if testing fails, this push (all commits in it) should be canceled.
With the first part, it seems, there are no problems, but I can’t figure out how to implement the second part, that is, canceling the push. Thank you for your attention to the question!