I have a step incrementing AppInfo.plist with new build number, I would like to commit this change to GitHub.
I added a Script Step with these commands:
One more note: to be able to push back into the repository:
You have to make sure that the SSH key (the one you can see on the Settings tab of the app on bitrise.io) have write access to the repository. If you used the default bitrise.io automatic SSH key registration, the key is registered as read-only, and youâll have to delete it and add it again as a read-write key.
Make sure that youâre on a branch in your build. If a build is triggered by a code push / commit, you wonât be on a branch, that specific commit will be checked out. This is to prevent the build to clone another commit, e.g. if youâd push another commit to the same branch before the build could clone the commit it was started with. You can find more information about this at: Intermittent build failures to execute push_to_git_remote & how to manage build number