Created
October 18, 2017 10:36
-
-
Save erenkabakci/dadeb42f5fda17d06f97c088cc8ebc19 to your computer and use it in GitHub Desktop.
Git pre-push hook to remind incrementing the build version
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo " ++++++++ DID YOU INCREASE THE BUILD NUMBER ? ++++++++" | |
exec < /dev/tty | |
read input | |
if [ "$input" == "y" ]; then | |
exit 0 | |
else | |
echo "Running hook for build increment" | |
fastlane increment_build | |
git add pathToYourProject/pathToYourTarget/Info.plist | |
git add pathToYourProject/projectName.xcodeproj/project.pbxproj | |
git commit -m "Increment build number" | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment