Best way to handle builds involving multiple submodules (and a "master" repo)?

Hi everyone,

I am using submodules to build a documentation repository on Github.

The workflow is like this: I version documentation in feeder repositories that pull into a main repository (built with MK Docs). Then, that deploys onto Netlify (for various reasons, I want to keep the workflow like this rather than work with a monorepo).

I would like to create the following automation:

Every time I push changes to a feeder repo, then:

  • The main repository is notified
  • The main repository pulls in those changes
  • The main repository builds (and thus deploys onto Netlify)

I’ve really struggled to get the workflows and actions working in Github.

Is there any easy/boilerplate way to configure this?

There’s no first-party way that could help you accomplish this natively. As for getting notified on repo-pushes, that sounds like something that would require some configuration on GitHub’s end and thus, would be a better question for their support.

From Netlify’s end, you can possibly create a build hook and trigger than hook from your Actions every time the feeder repo gets a push.