Skip to content

Commit f8f86f8

Browse files
author
g
committed
Fix if / then / else condition
1 parent e9f59d2 commit f8f86f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ then
4444
GIT_CMD_REPOSITORY="git@$GITHUB_SERVER:$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git"
4545

4646
elif [ -n "${API_TOKEN_GITHUB:=}" ]
47-
GIT_CMD_REPOSITORY="https://$DESTINATION_REPOSITORY_USERNAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git"
4847
then
48+
GIT_CMD_REPOSITORY="https://$DESTINATION_REPOSITORY_USERNAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git"
49+
else
4950
echo "::error::API_TOKEN_GITHUB and SSH_DEPLOY_KEY are empty. Please fill one (recommended the SSH_DEPLOY_KEY"
5051
exit 1
5152
fi

0 commit comments

Comments
 (0)