File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ # GIT_REF=`git symbolic-ref HEAD`
4+ # if [[ $GIT_REF = refs/tags* ]]
5+ # then
6+ # RELEASE_CHANNEL="stable"
7+ # # export RELEASE_CHANNEL="stable"
8+ # else
9+ # RELEASE_CHANNEL="edge"
10+ # # export RELEASE_CHANNEL="edge"
11+ # fi
12+ # # echo "Release channel determined to be $RELEASE_CHANNEL"
13+ # LATEST_VERSION=$(git describe --tags `git rev-list --tags --max-count=1`)
14+ GIT_REF=` git symbolic-ref HEAD`
15+ if [[ $GIT_REF = refs/tags* ]]
16+ then
17+ RELEASE_CHANNEL=" stable"
18+ # export RELEASE_CHANNEL="stable"
19+ else
20+ RELEASE_CHANNEL=" edge"
21+ # export RELEASE_CHANNEL="edge"
22+ fi
23+ echo " Release channel determined to be $RELEASE_CHANNEL "
24+ echo LATEST_VERSION=$( git describe --tags ` git rev-list --tags --max-count=1` --always)
25+ echo GIT_VERSION=$( git describe --tags ` git rev-list --tags --max-count=1` --always)
26+ echo GIT_STRIPPED_VERSION=$( git describe --tags ` git rev-list --tags --max-count=1` --always | cut -c 2-)
27+ # env
You can’t perform that action at this time.
0 commit comments