Skip to content

Trigger on completion of two disjoint actions #25518

Discussion options

You must be logged in to vote

Suppose your three workflows are wf1 , wf2 and wf3 , wf1 and wf2 are the upstream works triggered simultaneously. And you want that wf3 is triggered only when both wf1 and wf2 are completed.

As you mentioned, because wf1 and wf2 are triggered simultaneously, and the time they spend is indeterminable, so we can’t be sure which one of wf1 and wf2 we should add the repository_dispatch event into. And there is no any other method (APIs or actions) that can be used to monitor the status of wf1 and wf2 in real time.

However, if wf1 and wf2 are in the same repository, as a workaround, you can combine them as two separate jobs ( job1 and job2 ) in one workflow, and the two jobs can run in paralle…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants