From a00701972fc41e37c1f2a2f698aac3dab3ac63b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Fri, 1 Mar 2024 13:28:32 +0100 Subject: [PATCH] Get current version from spec instead of from git for COPR builds https://packit.dev/docs/configuration/examples#getting-version --- .packit.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index fc2bc25ff..1dac1d9ae 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -31,6 +31,9 @@ jobs: trigger: pull_request targets: - fedora-all + actions: + get-current-version: + - bash -c 'rpmspec -q --queryformat "%{VERSION}\n" dnf5.spec | head -n1' - job: tests trigger: pull_request identifier: "dnf5-tests"