Skip to content

Commit

Permalink
Get version from specfile
Browse files Browse the repository at this point in the history
Signed-off-by: Frantisek Lachman <flachman@redhat.com>
  • Loading branch information
lachmanfrantisek committed Oct 20, 2023
1 parent bf1a701 commit 7b58166
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ upstream_project_url: https://github.com/fedora-copr/copr.git

actions: &common_actions
create-archive:
- env
- bash -c 'sed -i s/version=.\*,/version=\"$PACKIT_PROJECT_VERSION\",/g setup.py'
- 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 7b58166

Please sign in to comment.