Skip to content

Commit 0ee308f

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 . `post-modifications` needs to be limited to the propose_downstream job or else it will interfere with upstream PR copr builds. Also, s/PACKIT_PROJECT_TAG/PACKIT_PROJECT_VERSION/ . Co-authored-by: Nikola Forró <[email protected]> Signed-off-by: Lokesh Mandvekar <[email protected]>
1 parent ecf6e2c commit 0ee308f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.packit.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ 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"
2725

2826
srpm_build_deps:
2927
- make
@@ -122,6 +120,9 @@ jobs:
122120
update_release: false
123121
dist_git_branches: &fedora_targets
124122
- fedora-all
123+
actions:
124+
post-modifications: >-
125+
bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"v${PACKIT_PROJECT_VERSION}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf"
125126
126127
# Sync to CentOS Stream
127128
# FIXME: Switch trigger whenever we're ready to update CentOS Stream via

0 commit comments

Comments
 (0)