From e26a4237fc7bee11ac347c2bb0ae0ac821c169a0 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 4 Dec 2025 10:22:56 -0500 Subject: [PATCH] Packit: use `post-modifications` hook to update downstream TMT plan MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `prepare-files` action was interfering with spec file update which caused https://github.com/containers/skopeo/issues/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ó Signed-off-by: Lokesh Mandvekar --- .packit.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.packit.yaml b/.packit.yaml index 1645a7701c..86209a517a 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -22,8 +22,6 @@ packages: # https://packit.dev/docs/configuration/actions actions: get-current-version: bash -c 'grep "^const Version" version/version.go | cut -f2 -d\" | tr \- \~' - prepare-files: >- - bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"${PACKIT_PROJECT_TAG}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf" srpm_build_deps: - make @@ -122,6 +120,9 @@ jobs: update_release: false dist_git_branches: &fedora_targets - fedora-all + actions: + post-modifications: >- + bash -c "sed -i 's/^\(\s*\)ref: .*/\1ref: \"v${PACKIT_PROJECT_VERSION}\"/' ${PACKIT_DOWNSTREAM_REPO}/plans/main.fmf" # Sync to CentOS Stream # FIXME: Switch trigger whenever we're ready to update CentOS Stream via