Skip to content

[#6870]Fix: Use RELEASE_BRANCH instead of hardcoded main in release script#6901

Closed
Pranaykarvi wants to merge 24 commits intoapache:mainfrom
Pranaykarvi:fix-release-tag-branch
Closed

[#6870]Fix: Use RELEASE_BRANCH instead of hardcoded main in release script#6901
Pranaykarvi wants to merge 24 commits intoapache:mainfrom
Pranaykarvi:fix-release-tag-branch

Conversation

@Pranaykarvi
Copy link
Contributor

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.

@Pranaykarvi Pranaykarvi deleted the fix-release-tag-branch branch April 12, 2025 16:13
@Pranaykarvi Pranaykarvi restored the fix-release-tag-branch branch April 12, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant