title: How can I reject push from repository members using GitHub Actions?
body: <p>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 <code>git pull</code> and <code>npm test</code>). Then, if testing fails, this push (all commits in it) should be canceled.</p>
  <p>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!</p>