From 927705366bc722bdd38f83024d44310606a5877b Mon Sep 17 00:00:00 2001 From: DanielePalaia Date: Mon, 27 Jan 2025 10:41:37 +0100 Subject: [PATCH] reverting replaces/skip fields for operatorhub bundle publication --- .github/workflows/testing-and-publishing-OLM-bundle.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/testing-and-publishing-OLM-bundle.yml b/.github/workflows/testing-and-publishing-OLM-bundle.yml index cb6cdd5a..10df3f02 100644 --- a/.github/workflows/testing-and-publishing-OLM-bundle.yml +++ b/.github/workflows/testing-and-publishing-OLM-bundle.yml @@ -218,7 +218,10 @@ jobs: git branch rabbitmq-messaging-topology-operator-$BUNDLE_VERSION git checkout rabbitmq-messaging-topology-operator-$BUNDLE_VERSION + REPLACE_VERSION=$(ls -1v ./operators/rabbitmq-messaging-topology-operator/ | tail -2 | head -1) + cp -v -fR ./olm-package-ci/"$BUNDLE_VERSION" ./operators/rabbitmq-messaging-topology-operator/ + sed -i -e "s/replaces: null/replaces: rabbitmq-messaging-topology-operator.v$REPLACE_VERSION/g" ./operators/rabbitmq-messaging-topology-operator/$BUNDLE_VERSION/manifests/rabbitmq.clusterserviceversion.yaml sed -i -e "s/latest/$BUNDLE_VERSION/g" ./operators/rabbitmq-messaging-topology-operator/"$BUNDLE_VERSION"/manifests/rabbitmq.clusterserviceversion.yaml git add operators/rabbitmq-messaging-topology-operator git commit -s -m "RabbitMQ Topology Operator release $BUNDLE_VERSION"