Pranaykarvi opened a new pull request, #6901: URL: https://github.com/apache/gravitino/pull/6901
## Description The release script previously had the `git clone` command hardcoded to the `main` branch. This caused issues when attempting to release from a different branch, such as `release`, resulting in cloning the wrong codebase. This PR introduces the `RELEASE_BRANCH` variable, allowing the user to specify a branch dynamically. If not provided, it defaults to `release`. This enhances flexibility and prevents accidental use of the wrong branch during the release process. ### Changes Made - Defined `RELEASE_BRANCH=${RELEASE_BRANCH:-release}` early in the script. - Updated the `git clone` command to use `$RELEASE_BRANCH` instead of `main`. This change allows safe and accurate automation for multi-branch release workflows. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org