fix branch matching for element-web

pull/21833/head
Germain Souquet 2021-07-01 16:17:09 +01:00
parent d804df84a7
commit 19bc44e3fb
1 changed files with 1 additions and 6 deletions

View File

@ -46,12 +46,7 @@ BRANCH_ARRAY=(${head//:/ })
if [[ "${#BRANCH_ARRAY[@]}" == "1" ]]; then
if [ -n "$GITHUB_HEAD_REF" ]; then
if [[ "$GITHUB_REPOSITORY" == "$deforg"* ]]; then
clone $deforg $defrepo $GITHUB_HEAD_REF
else
REPO_ARRAY=(${GITHUB_REPOSITORY//\// })
clone $REPO_ARRAY[0] $defrepo $GITHUB_HEAD_REF
fi
else
clone $deforg $defrepo $BUILDKITE_BRANCH
fi