Skip to content

Commit

Permalink
chore: update DWO version for main branch during release (#2709)
Browse files Browse the repository at this point in the history
Signed-off-by: Mykhailo Kuznietsov <[email protected]>
  • Loading branch information
mkuznyetsov authored Mar 28, 2024
1 parent b73f473 commit b1775c3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ updateYaml() {
return 1
else
if [[ $(git rev-parse --abbrev-ref HEAD) == *"${BRANCH}"* ]]; then
# 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 '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 ' prod-ver' "\"${BASE1}.${BASE2}\""
replaceFieldSed $playbookfile ' prod-ver-patch' "\"$NEWVERSION\""
fi
Expand Down

0 comments on commit b1775c3

Please sign in to comment.