split GITHUB_REPOSITORY rather than using GITHUB_ACTOR

pull/21833/head
Germain Souquet 2021-06-22 14:17:11 +01:00
parent 660f3900f8
commit c42f0fd2e4
1 changed files with 2 additions and 1 deletions

View File

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