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.
2 parents 10e8c77 + 9a59cae commit 778b1a0Copy full SHA for 778b1a0
entrypoint.sh
@@ -7,7 +7,12 @@ POLL_TIMEOUT=${POLL_TIMEOUT:-$DEFAULT_POLL_TIMEOUT}
7
8
git checkout "${GITHUB_REF:11}"
9
10
-branch=${GITHUB_REPOSITORY}/$(git symbolic-ref --short HEAD)
+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
16
17
sh -c "git config --global credential.username $GITLAB_USERNAME"
18
sh -c "git config --global core.askPass /cred-helper.sh"
0 commit comments