Skip to content

Commit d73791f

Browse files
avalluripoussa
authored andcommitted
Use release-X.Y format for release branches
1 parent 52cfd59 commit d73791f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hack/prepare-release-branch.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ function Cleanup {
5050
}
5151
trap Cleanup EXIT
5252

53+
SHORT_VERSION=$(echo $VERSION | sed -e 's/\([0-9]*\.[0-9]*\)\..*/\1/')
5354
echo "Using release VERSION=$VERSION"
5455

55-
release_branch="release-v$VERSION"
56-
56+
release_branch="release-$SHORT_VERSION"
5757
cd "$REPO_ROOT"
5858
git fetch origin
59-
git checkout -b $release_branch $(git show --oneline origin/main | cut -f1 -d ' ')
59+
git checkout -b $release_branch $(git show --oneline origin/main | head -1 | cut -f1 -d ' ')
6060
make generate deploy-manifests REGISTRY="intel" IMG_TAG=$VERSION
6161
sed -i -e "s;\(.*version: \).*;\1$VERSION;g" -e 's;\(.*appVersion: \).*;\1"'$VERSION'";g' ./charts/Chart.yaml
6262
sed -i "s;\(.*tag: \).*;\1$VERSION;g" ./charts/values.yaml

0 commit comments

Comments
 (0)