Merge pull request #2770 from lucab/ups/git-describe-tags

ci: adjust git tags filtering
This commit is contained in:
Colin Walters 2022-11-21 11:33:10 -05:00 committed by GitHub
commit b8b07fc26b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}"