Skip to content

Commit

Permalink
ci: Get version for packit from the SPEC file
Browse files Browse the repository at this point in the history
Default is using the latest tag which might be different (e.g. for
a stable release, not for the latest one).
  • Loading branch information
vojtechtrefny committed Apr 16, 2024
1 parent df7bc64 commit 924b3e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ actions:
- 'make'
- 'make local'
- 'bash -c "ls *.tar*"'
get-current-version:
- 'bash -c "grep Version: dist/libblockdev.spec.in | cut -f2 -d\":\" | tr -d \" \""'

jobs:
- job: copr_build
Expand Down Expand Up @@ -42,6 +44,8 @@ jobs:
- 'make'
- 'make local'
- 'bash -c "ls *.tar*"'
get-current-version:
- 'bash -c "grep Version: dist/libblockdev.spec.in | cut -f2 -d\":\" | tr -d \" \""'

- job: copr_build
trigger: commit
Expand All @@ -61,6 +65,8 @@ jobs:
- 'make'
- 'make local'
- 'bash -c "ls *.tar*"'
get-current-version:
- 'bash -c "grep Version: dist/libblockdev.spec.in | cut -f2 -d\":\" | tr -d \" \""'

- job: propose_downstream
trigger: release
Expand Down

0 comments on commit 924b3e0

Please sign in to comment.