From ce0431aa278046ef03cfce3d80d195f8d3b24059 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 23 Aug 2023 09:19:56 +0200 Subject: [PATCH] packit: use tito to generate "python-copr-common" versions Similar thing was done in mock: https://github.com/rpm-software-management/mock/blob/7222e29f57f83fc7257f8c0015e112e951d9299f/.packit.yaml#L11-L16 Relates: #2884 --- .packit.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index c151912b2..b8ee5fbda 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -27,6 +27,13 @@ packages: specfile_path: python-copr-common.spec files_to_sync: - python-copr-common.spec + actions: + create-archive: + - bash -c "tito build --tgz --test -o ." + - bash -c "ls -1t ./*.tar.gz | head -n 1" + get-current-version: + - bash -c "git describe --match python-copr-common-[0-9]* --abbrev=0 HEAD | egrep -o + [0-9]+\.[0-9]+" upstream_tag_template: python-copr-common-{version} upstream_tag_include: "^python-copr-common-.*"