How can I share my env0.yml between different git repositories?

I have a multi-repo setup and each of my env0 templates are linked to different git repositories, yet I'd like to share my env0.yml between them. How can I do that?

This can be done by combining git submodules and symlinks.

  1. Push a git repository holding your shared env0.yml
  2. In each of your repositories, add that env0.yml repository as git submodule, i.e: git submodule add
  3. In each of your repositories create an env0.yml symlink in the root of that repository that points to the shared env0.yml in the submodule directory ln -s my-env0-yml/env0.yml env0.yml