Skip to content

Commit e8d96a2

Browse files
lachmanfrantisekpraiskup
authored andcommitted
Get version for Packit builds from specfile
Packit updates just the release field. Signed-off-by: Frantisek Lachman <[email protected]>
1 parent 1a8db65 commit e8d96a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.packit.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ actions: &common_actions
88
- bash -c "tito build --tgz --test -o ."
99
- bash -c "ls -1t ./*.tar.gz | head -n 1"
1010
get-current-version:
11-
- bash -c "git describe --match $PACKIT_CONFIG_PACKAGE_NAME-[0-9]* --abbrev=0 HEAD | egrep -o
12-
[0-9]+\.[0-9]+"
11+
- bash -c "grep -Po 'Version. +\K.*' *.spec"
1312

1413
packages:
1514

0 commit comments

Comments
 (0)