Skip to content

Commit 778b1a0

Browse files
committed
Merge branch 'mirror'
2 parents 10e8c77 + 9a59cae commit 778b1a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

entrypoint.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}
77

88
git checkout "${GITHUB_REF:11}"
99

10-
branch=${GITHUB_REPOSITORY}/$(git symbolic-ref --short HEAD)
10+
if [ "$GITLAB_HOSTNAME" = "gitlab.com" ]
11+
then
12+
branch=${GITHUB_REPOSITORY}/$(git symbolic-ref --short HEAD)
13+
else
14+
branch=$(git symbolic-ref --short HEAD)
15+
fi
1116

1217
sh -c "git config --global credential.username $GITLAB_USERNAME"
1318
sh -c "git config --global core.askPass /cred-helper.sh"

0 commit comments

Comments
 (0)