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