Best way to run a workflow after all other workflow

Hi,

I’m currently rebuilding the CI of our monorepo. This last will contain several services with their own workflow(s). I merge all worflows needed by a PR or a commit in a 1st step to create a dynamic config. It works really nicely.

But now, on Github side I want to mark as required the jobs. But if I do it, obviously when the workflow is not run, Github will wait forever.

So my idea is to create another workflow that will wait for all the other workflow, and fails if at least one fails. Within Github, I will have to set this workflow as required.

Do we have an easy way to retrieve the pipeline id and so all the workflows launched by a pipeline ?