We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a71120 commit c5c52a3Copy full SHA for c5c52a3
.circleci/config.yml
@@ -267,7 +267,8 @@ jobs:
267
# - PR builds pass the branch name in as release_ref, so massage it if it is missing a semver prefix.
268
echo "Branch (PR) build detected, sanitizing release tag..."
269
LAST_SEMVER_TAG=$(git describe --tags --match 'v*.*.*' --abbrev=0 | cut -d"-" -f1)
270
- RELEASE_REF="${LAST_SEMVER_TAG}-<< parameters.release_ref >>"
+ BRANCH_NAME=$(echo "<< parameters.release_ref >>" | sed 's/\//-/g')
271
+ RELEASE_REF="${LAST_SEMVER_TAG}-${BRANCH_NAME}"
272
fi
273
echo "Will use RELEASE_REF=${RELEASE_REF}"
274
echo "export RELEASE_REF=${RELEASE_REF}" >> $BASH_ENV
0 commit comments