Skip to content

Commit f218c0d

Browse files
DanielePalaiaDanielePalaia
andauthored
adding back replaces field on operatorhub publication (#1815)
Co-authored-by: DanielePalaia <daniele985@@gmail.com>
1 parent 0cb65ca commit f218c0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/testing_and_publishing_OLM_bundle.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ jobs:
209209
git branch rabbitmq-cluster-operator-$BUNDLE_VERSION
210210
git checkout rabbitmq-cluster-operator-$BUNDLE_VERSION
211211
212+
REPLACE_VERSION=$(ls -1v ./operators/rabbitmq-cluster-operator/ | tail -2 | head -1)
213+
212214
cp -v -fR olm-package-ci/"$BUNDLE_VERSION" ./operators/rabbitmq-cluster-operator/
215+
sed -i -e "s/replaces: null/replaces: rabbitmq-cluster-operator.v$REPLACE_VERSION/g" ./operators/rabbitmq-cluster-operator/$BUNDLE_VERSION/manifests/rabbitmq.clusterserviceversion.yaml
213216
sed -i -e "s/latest/$BUNDLE_VERSION/g" ./operators/rabbitmq-cluster-operator/$BUNDLE_VERSION/manifests/rabbitmq.clusterserviceversion.yaml
214217
git add operators/rabbitmq-cluster-operator
215218
git commit -s -m "RabbitMQ Operator release $BUNDLE_VERSION"

0 commit comments

Comments
 (0)