Skip to content

Commit

Permalink
Get version for Packit builds from specfile
Browse files Browse the repository at this point in the history
Packit updates just the release field.

Signed-off-by: Frantisek Lachman <flachman@redhat.com>
  • Loading branch information
lachmanfrantisek committed Oct 23, 2023
1 parent e1b38c8 commit 71140fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ actions: &common_actions
- bash -c "tito build --tgz --test -o ."
- bash -c "ls -1t ./*.tar.gz | head -n 1"
get-current-version:
- bash -c "git describe --match $PACKIT_CONFIG_PACKAGE_NAME-[0-9]* --abbrev=0 HEAD | egrep -o
[0-9]+\.[0-9]+"
- bash -c "grep -Po 'Version. +\K.*' *.spec"

packages:

Expand Down

0 comments on commit 71140fe

Please sign in to comment.