mirror of
https://github.com/containers/skopeo.git
synced 2025-12-24 12:58:04 +08:00
Packit: use post-modifications hook to update downstream TMT plan
`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ó <nforro@redhat.com> Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user