Skip to content

Commit

Permalink
version: use tagged version only on release branches
Browse files Browse the repository at this point in the history
Feature branches are usually developed on master, so nightly
is better choice.
  • Loading branch information
zimnx committed Nov 25, 2020
1 parent a5ba58f commit 547599d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.sh
Expand Up @@ -19,7 +19,7 @@
set -euo pipefail

BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$BRANCH" != "master" ]]; then
if [[ $BRANCH == branch-* ]]; then
echo $(git describe --tags --always --abbrev=0)
exit 0
fi
Expand Down

0 comments on commit 547599d

Please sign in to comment.