mirror of
https://github.com/gosticks/web.git
synced 2026-10-06 14:47:32 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user