Update 'project' from a flow

Is there to have a flow initiate a git pull and thus update itself?

In theory, from an exec node but for node-RED to detect that might be harder as you either have to confirm it by hand in the editor, or restart node-RED. And have a flow call a restart of its own service or the nodejs process gets ugly rather soon due to forking processes and which parent owns which. The cleanest would likely be to have Node-RED do a pull, then issue a restart of the machine and have Node-RED started on boot.

Thanks... I was actually hoping for something more direct. Since the Editor is making calls to do Git I was hoping there was a specific API that was accessible by a Flow (either specific node - or just cobble together with http request nodes - or whatever).

Since one can use the editor to do a Pull - which restarts the flow - I would think this was possible...

BTW, I'm running node-red in a network of Pi 4's, and and also in a few K8S clusters... I'm hoping on migrating the PI's over to K3S soon...