Skip to content

Commit 027394d

Browse files
lsm5nforro
andcommitted
Packit: use post-modifications hook to update downstream TMT plan
`prepare-files` action was interfering with spec file update which caused #2760 . Also, s/PACKIT_PROJECT_TAG/PACKIT_PROJECT_VERSION/ . Co-authored-by: Nikola Forró <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent 85dc747 commit 027394d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.packit.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ packages:
2222
# https://packit.dev/docs/configuration/actions
2323
actions:
2424
get-current-version: bash -c 'grep "^const Version" version/version.go | cut -f2 -d\" | tr \- \~'
25-
prepare-files: >-
26-
bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"${PACKIT_PROJECT_TAG}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf"
25+
post-modifications: >-
26+
bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"v${PACKIT_PROJECT_VERSION}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf"
2727
2828
srpm_build_deps:
2929
- make

0 commit comments

Comments
 (0)