Use the correct env variable when checking if this is a tag build

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
Mcat12
2018-08-16 10:55:29 -04:00
parent 2683c6be13
commit 2751b09ef0
+1 -1
View File
@@ -14,7 +14,7 @@ version: 2
run:
name: "Store Version"
command: |
BRANCH=$([ -z "$CI_COMMIT_TAG" ] && echo "$CIRCLE_BRANCH" || echo "master")
BRANCH=$([ -z "$CIRCLE_TAG" ] && echo "$CIRCLE_BRANCH" || echo "master")
echo "$CIRCLE_TAG $BRANCH ${CIRCLE_SHA1::7}" > build/VERSION
cat build/VERSION
echo "export BRANCH=$BRANCH" >> $BASH_ENV