I am currently using GitHub as VCS provider, and I would like to know if anyone has ever tried to automate the process of pushing slice changes to the repository as part of the site continuous integration setup. What I would like to ideally achieve:
- Execute this over the main branch only
- On push to the main branch automatically push slice changes based on the slice configuration of the main branch
- Either with GitHub actions or through any other means
Has anyone achieved this?
In theory this should be possible with the Types API:
However, we strongly recommend following the Slice Machine development flow. Slice Machine helps you safely version and manage your types to avoid causing any problems in your repository. An automated flow like this could result in broken models in your repository. If that happened, our team might not be able to help you troubleshoot, since this isn't a supported implementation. That being the case, I'd really encourage you to use Slice Machine to manage your models.