Not with the built in Projects feature, you have to manually decide when to push changes to the default git repo. This is deliberate as it allows you to test things and then decide what to check in, it also allows for collecting meaningful commit messages about what has changed and why.
There a 2 possible ways to approach this.
Write a custom storage plugin that will push the flow on each deploy. The API for the storage API an be found here. You would need to create a custom Docker container that included the plugin.
Some people have included the logic in their flows, and used a inject node set to fire on start to grab the flow and check it into git. There is a post on the forum with an example here that you may be able to adapt. But since it appears to be using the Admin API, it won’t be able to check in credentials.
Read more here: Source link