ci: adjust git tags filtering

Another attempt at fixing logic for version detection in COPR.
This commit is contained in:
Luca BRUNO 2022-11-16 16:09:24 +00:00
parent 9ae86131ed
commit 4202082019
No known key found for this signature in database
GPG Key ID: A9834A2252078E4E
2 changed files with 2 additions and 2 deletions

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))

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}"