Skip to content

Commit 048b3b4

Browse files
committed
fix(build): fix current branch detection
1 parent 631858c commit 048b3b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/ci_build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/sh
2-
BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
3-
echo "Current branch is ${BRANCH}"
4-
if [ "$BRANCH" = "master" ]
2+
echo "Current branch is ${TRAVIS_BRANCH}"
3+
if [ "$TRAVIS_BRANCH" = "master" ]
54
then
65
echo "Building & publishing"
76
./gradlew :app:publishReleaseApk --daemon --parallel

0 commit comments

Comments
 (0)