ci: adjust git tags filtering

Another attempt at fixing logic for version detection in COPR.
This commit is contained in:
Luca BRUNO committed 2022-11-21 15:12:31 +00:00
1 parent 9ae86131ed
commit 4202082019
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
mypath = $(dir $(realpath $(firstword $(MAKEFILE_LIST))))
topsrcdir = $(shell git rev-parse --show-toplevel)
GITREV = $(shell git describe --always --tags)
GITREV = $(shell git describe --always --tags --match 'v2???.*')
GITREV_FOR_PKG = $(shell echo "$(GITREV)" | sed -e 's,-,\.,g' -e 's,^v,,')
PACKAGE ?= $(shell basename $(topsrcdir))
+1 -1
View File
@@ -3,7 +3,7 @@ set -xeuo pipefail
TOP=$(git rev-parse --show-toplevel)
GITREV=$(git rev-parse HEAD)
gitdescribe=$(git describe --always --tags $GITREV)
gitdescribe=$(git describe --always --tags --match 'v2???.*' $GITREV)
version=$(echo "$gitdescribe" | sed -e 's,-,\.,g' -e 's,^v,,')
name=libostree
PKG_VER="${name}-${version}"