mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
allow prereleases from main for nb4
This commit is contained in:
@@ -22,8 +22,9 @@ fi
|
||||
PRERELEASE_BRANCH_PATTERN=${PRERELEASE_BRANCH_PATTERN:?PRERELEASE_BRANCH_PATTERN must be provided}
|
||||
# Filter the branch to execute the release on
|
||||
readonly local current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
|
||||
echo "Current branch: ${branch}"
|
||||
if [[ -n "$RELEASE_BRANCH_NAME" && "${current_branch}" = "$RELEASE_BRANCH_NAME" ]]; then
|
||||
if [[ -n "${current_branch}" && "${current_branch}" == *"${RELEASE_BRANCH_PATTERN}"* ]]; then
|
||||
echo "Building for release branch $RELEASE_BRANCH_NAME"
|
||||
elif [[ -n "${current_branch}" && "${current_branch}" == *"${PRERELEASE_BRANCH_PATTERN}"* ]]; then
|
||||
echo "Building prerelease for branch $RELEASE_BRANCH_NAME"
|
||||
|
||||
@@ -13,7 +13,8 @@ PRERELEASE_BRANCH_PATTERN=${PRERELEASE_BRANCH_PATTERN:?PRERELEASE_BRANCH_PATTERN
|
||||
# Filter the branch to execute the release on
|
||||
readonly local current_branch=$(git rev-parse --abbrev-ref HEAD)
|
||||
echo "Current branch: ${current_branch}"
|
||||
if [[ -n "$RELEASE_BRANCH_NAME" && "${current_branch}" = "$RELEASE_BRANCH_NAME" ]]; then
|
||||
|
||||
if [[ -n "${current_branch}" && "${current_branch}" == *"${RELEASE_BRANCH_PATTERN}"* ]]; then
|
||||
echo "Building for release branch $RELEASE_BRANCH_NAME"
|
||||
elif [[ -n "${current_branch}" && "${current_branch}" == *"${PRERELEASE_BRANCH_PATTERN}"* ]]; then
|
||||
echo "Building prerelease for branch $RELEASE_BRANCH_NAME"
|
||||
|
||||
Reference in New Issue
Block a user