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 ebf0851 commit 763f1c6Copy full SHA for 763f1c6
.circleci/config.yml
@@ -222,6 +222,11 @@ jobs:
222
DOCKER_TAG=${DOCKER_BASE}/unverified-dev-build-do-not-use:PR${CIRCLE_PR_NUMBER}-${CIRCLE_BUILD_NUM}
223
fi
224
else
225
+ if [[ -z $CIRCLE_BRANCH ]]; then
226
+ BRANCHES=$(git branch -a --contains tags/$CIRCLE_TAG)
227
+ CIRCLE_BRANCH=${BRANCHES##*/}
228
+ echo "CIRCLE_BRANCH is empty, trying to set it from git, result: $CIRCLE_BRANCH"
229
+ fi
230
if [[ $CIRCLE_BRANCH != "main" && ! $CIRCLE_TAG =~ (a|b|rc) ]]; then
231
echo "Final release tags are only allowed on main branch."
232
exit 1
0 commit comments