Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible to cancel previous workflows only when a specific job has not been started? #170

Closed
cwolf24 opened this issue Jun 30, 2022 · 1 comment

Comments

@cwolf24
Copy link

cwolf24 commented Jun 30, 2022

We have a deploy workflow including tests after the build-main job and some stuff that happens before the build-main job.
My question is: can we cancel previous workflows only when the build-main job (in current running workflow) has not been started yet OR the build-main job has been finished?

example:

jobs:
  prepare:
     # do some preparation; workflow can be skipped

  build-main:
     needs:
        - prepare
     # do NOT skip workflow when build-main is running...

  run-tests:
     needs:
        - build-main
     # run tests; workflow can be skipped
@styfle
Copy link
Owner

styfle commented Oct 3, 2023

I believe this was solved with the only_status: 'waiting' option

@styfle styfle closed this as completed Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants