Unable to use git for tags

This commit is contained in:
Henrik Tjäder 2020-10-05 10:44:57 +00:00
parent 3fed6a944e
commit a38952fbd4

View file

@ -579,13 +579,14 @@ jobs:
run: | run: |
langs=( en ru ) langs=( en ru )
devver=( dev ) devver=( dev )
# Query git for tagged releases, all releases start with "v" # The latest stable must be the first element in the array
# followed by MAJOR.MINOR.PATCH, see semver.org
# Then remove all pre-releases/tags with hyphens (-).
# The latest release is last, finally trim "v" and PATCH
stable=$(git tag | grep "^v" | grep -v "-" | tail -n 1 | cut -c2-4)
vers=( 0.5.x 0.4.x ) vers=( 0.5.x 0.4.x )
# All releases start with "v"
# followed by MAJOR.MINOR.PATCH, see semver.org
# Retain MAJOR.MINOR as $stable
stable=${vers%.*}
echo "Stable version: $stable" echo "Stable version: $stable"
# Create directories # Create directories