0

Our CI setup is currently looking like this on GitHub:

enter image description here

Usually, first check is finishing much sooner than second check. It can succeed or fail. Is it possible (and if so - how) to "break early" and terminate remaining actions as soon as some action fails?

ror
  • 3,295
  • 1
  • 19
  • 27
  • Typically, you would at least want to know whether the second one succeeded or failed so you could address both sets of issues at once if necessary. If you have a particular reason for not doing that, it might help to explain what it is so we could suggest an alternative way to help you achieve your goal. – bk2204 Dec 02 '22 at 21:15
  • Could you please share your workflow? Probably you need the [steps conditions](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsif) – Andrii Bodnar Dec 03 '22 at 10:58
  • Thank you guys, there is actually no workflow (in a Github actions sense). Codacy and Bitrise are using web hooks. – ror Dec 04 '22 at 16:19

1 Answers1

0

You can do this easily but only within a single workflow. If you have multiple workflows.

strategy:
  matrix:
    os: [ubuntu-latest, macos-latest, windows-latest]
  fail-fast: true
sorin
  • 161,544
  • 178
  • 535
  • 806
  • Thanks - I can understand this would work if my setup was actually using any yml with github actions - but it's not using any, I believe both Codacy and Bitrise have some webhooks setup and there is no yml file to interact with them. – ror Dec 04 '22 at 16:18