Skip to content

Commit

Permalink
chore: instead of just having a VERSION file, we should ALSO actually…
Browse files Browse the repository at this point in the history
… bump the version of chectl to match the release version (0.0.2 --> 7.yy.0) (#2782)

Change-Id: I52ab535adece48e61da6ec69cee934694c1b3cb3

Signed-off-by: Nick Boldt <nboldt@redhat.com>
  • Loading branch information
nickboldt authored Oct 11, 2023
1 parent dd0043c commit a36ccc4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion make-release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (c) 2019-2022 Red Hat, Inc.
# Copyright (c) 2019-2023 Red Hat, Inc.
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
Expand Down Expand Up @@ -91,6 +91,8 @@ release() {
# now replace package.json dependencies
apply_sed "s;github.com/eclipse-che/che-operator#\(.*\)\",;github.com/eclipse-che/che-operator#${VERSION}\",;g" package.json
apply_sed "s;https://github.com/devfile/devworkspace-operator#\(.*\)\",;https://github.com/devfile/devworkspace-operator#${DWO_VERSION}\",;g" package.json
# and update the app version in package.json
jq '.version |= "'$VERSION'"' package.json > package.json_; mv -f package.json_ package.json

if ! grep -q "github.com/eclipse-che/che-operator#${VERSION}" package.json; then
echo "[ERROR] Unable to find Che Operator version ${VERSION} in the package.json"; exit 1
Expand Down

0 comments on commit a36ccc4

Please sign in to comment.