From 4f6c4b46d4defcaa664fdbe065f3f20a3987439f 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 https://packit.dev/docs/configuration/examples#getting-version --- .packit.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.packit.yaml b/.packit.yaml index fc2bc25fff..63fad1976a 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -13,6 +13,10 @@ upstream_package_name: dnf5 # downstream (Fedora) RPM package name downstream_package_name: dnf5 +actions: + get-current-version: + - rpmspec -q --queryformat "%{VERSION}\n" *spec |head -n1 + jobs: - job: propose_downstream trigger: release