mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-22 17:35:55 +03:00
ci: adjust git tags filtering
Another attempt at fixing logic for version detection in COPR.
This commit is contained in:
parent
9ae86131ed
commit
4202082019
@ -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))
|
||||
|
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user