diff --git a/appcenter-post-build.sh b/appcenter-post-build.sh index 81ef151..3b54d58 100644 --- a/appcenter-post-build.sh +++ b/appcenter-post-build.sh @@ -1,6 +1,12 @@ #!/usr/bin/env bash +if [ "$APPCENTER_BRANCH" != "master" ]; then + echo "Not on master. Exiting..." + exit 1 +fi + if [ "$AGENT_JOBSTATUS" == "Succeeded" ]; then cd android + ./gradlew -q increment VERSION=`./gradlew -q printVersion | tail -n 1` echo $VERSION git add ./gradle.properties