There's an Obisidian plugin for direct syncing to OneDrive that works on both mobile and desktop - this keeps you from having to deal with either triggered syncs through github or the various other, painful syncing processes.
https://github.com/remotely-save/remotely-save