packit: try a different way to get upstream version

This commit is contained in:
Pino Toscano 2023-04-13 15:44:40 +02:00
parent 95913076c6
commit 22b53921dc

View File

@ -1,11 +1,11 @@
upstream_project_url: https://github.com/candlepin/subscription-manager
srpm_build_deps:
- python3
- tito
actions:
pre-sync:
- tito build -o . --tgz
get-current-version:
- git describe --tags --abbrev=0 --match='subscription-manager-*' | sed -e 's,subscription-manager-,,g;s,-[0-9]\+$,,g'
get-current-version: python3 setup.py --version
specfile_path: subscription-manager.spec
upstream_tag_template: "subscription-manager-{version}"
jobs: