You might wanna check out https://copier.readthedocs.io/en/stable/
Dunno if it's your exact use case but it's been amazing for keeping a polyrepo microservice ecosystem in sync.