Home > database >  How do I set a github branch protection rule based on the success or failure of an entire github act
How do I set a github branch protection rule based on the success or failure of an entire github act

Time:12-12

I'm trying to set a github branch protection rule based on the success or failure of a github actions workflow.

You can see the workflow here:

I can pick a sub-build but not the entire build job

Screenshot two: I can't pick the name of the overall "Tests" workflow at all.

I can't pick the name of the overall "Tests" workflow at all

CodePudding user response:

In this case, you have a single job with a matrix. That means you'll end with 9 possibilities (3 node options × 3 MongoDB options). Each of those is considered a separate status check and can be enabled or disabled as mandatory individually. This is so that you can add new options without making them mandatory up front.

If you want every one of those jobs to pass, then you need to choose every one of the 9 jobs and mark them as required.

  • Related