Skip to content

Commit

Permalink
chore: fix automatic DWO version update (#2715)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <[email protected]>
  • Loading branch information
mkuznyetsov authored Apr 9, 2024
1 parent 4ed54ee commit 9e5f0f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ asciidoc:
# for the project
che-plugin-registry-directory: che-plugin-registry
devworkspace-operator-index-disconnected-install: quay.io/devfile/devworkspace-operator-index:release-digest
devworkspace-operator-version-patch: "0.25.0"
devworkspace-operator-version-patch: "0.26.0"
devworkspace: DevWorkspace
devworkspace-id: devworkspace
docker-cli: docker
Expand Down
2 changes: 1 addition & 1 deletion make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ updateYaml() {
if [[ $(git rev-parse --abbrev-ref HEAD) == *"${BRANCH}"* ]]; then
replaceFieldSed $playbookfile 'version' "${BRANCH}"
replaceFieldSed $playbookfile 'prerelease' "false"
replaceFieldSed $playbookfile ' devworkspace-operator-version-patch' "\"${DWO_VERSION#v}\""
fi
# special fields for updating PR for 7.x.y branch
git clone https://github.com/devfile/devworkspace-operator /tmp/dwo
pushd /tmp/dwo
DWO_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1) )
popd
replaceFieldSed $playbookfile ' devworkspace-operator-version-patch' "\"${DWO_VERSION#v}\""
replaceFieldSed $playbookfile ' prod-ver' "\"${BASE1}.${BASE2}\""
replaceFieldSed $playbookfile ' prod-ver-patch' "\"$NEWVERSION\""
fi
Expand Down

0 comments on commit 9e5f0f1

Please sign in to comment.