Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
fix post build script
Browse files Browse the repository at this point in the history
  • Loading branch information
lucadruda committed Jul 23, 2020
1 parent 57c0ade commit d3c14e5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions appcenter-post-build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d3c14e5

Please sign in to comment.