ci: Fix another branch name issue
This commit is contained in:
parent
3807ed83b0
commit
46ae927951
|
@ -40,7 +40,7 @@ cd build/apidoc
|
||||||
# This will re-use already existing branches (updated PR).
|
# This will re-use already existing branches (updated PR).
|
||||||
if [ "$PR_NUMBER" != "" ]; then
|
if [ "$PR_NUMBER" != "" ]; then
|
||||||
BRANCH="pr-$PR_NUMBER"
|
BRANCH="pr-$PR_NUMBER"
|
||||||
elif [ "$GITHUB_HEAD_REF" != master ]; then
|
elif ["$GITHUB_HEAD_REF" != "" ] && [ "$GITHUB_HEAD_REF" != master ]; then
|
||||||
# Use merge-base of master in branch name, to keep different branches with
|
# Use merge-base of master in branch name, to keep different branches with
|
||||||
# the same name apart.
|
# the same name apart.
|
||||||
# shellcheck disable=SC2015
|
# shellcheck disable=SC2015
|
||||||
|
|
Loading…
Reference in New Issue