diff options
author | 2020-10-05 10:44:57 +0000 | |
---|---|---|
committer | 2020-10-05 10:44:57 +0000 | |
commit | a38952fbd4f972c2016093a852a35aadc479ac72 (patch) | |
tree | 37d3e22761ba6b42f34edddfcc675b3ed9e010e2 | |
parent | 3fed6a944e73e1a077d218f77c0957cfdd508688 (diff) | |
download | rtic-a38952fbd4f972c2016093a852a35aadc479ac72.tar.gz rtic-a38952fbd4f972c2016093a852a35aadc479ac72.tar.zst rtic-a38952fbd4f972c2016093a852a35aadc479ac72.zip |
Unable to use git for tags
-rw-r--r-- | .github/workflows/build.yml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6aed4e7..1d5773e4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -579,13 +579,14 @@ jobs: run: | langs=( en ru ) devver=( dev ) - # Query git for tagged releases, all releases start with "v" - # 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) + # The latest stable must be the first element in the array 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" # Create directories |