Replies: 2 comments 5 replies
-
|
Hi @ImreC, Just to eliminate an obvious option, If the only important thing is that should-run-workflow-2: trueshould-run-workflow-2: false |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Solved in a different way |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
So I am running a composed workflow which I have simplified here:
As you can see, whether workflow 2 is run or is skipped depends on a conditional. Let's say that these three workflows deploy infrastructure that depends on each other, for example workflow 1 deploys a db, workflow 2 a back end application that needs the db and workflow 3 a front end app that needs the back end. What I want to achieve is that it is possible to conditionally skip run-workflow-2, but still execute run-workflow-3. I can only find solutions that:
always())I can think of a solution that would allow this cleanly: instead of
needs:have a milder version likedepends-on:which allows for the target to be skipped instead of only allowingsucceeded.Alternatively there could also be a conditional option which allows to write a more permissive statement instead of only
always(),success()orfailure()(f.e.skipped()).Am I missing something obvious here or is this just not possible?
Beta Was this translation helpful? Give feedback.
All reactions