From f8f86f8d8fa988b561a263ad18bec22173325f13 Mon Sep 17 00:00:00 2001 From: g Date: Fri, 10 Jun 2022 09:45:34 +0200 Subject: [PATCH] Fix if / then / else condition --- entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index e9fd40f..ae896fe 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -44,8 +44,9 @@ then GIT_CMD_REPOSITORY="git@$GITHUB_SERVER:$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" elif [ -n "${API_TOKEN_GITHUB:=}" ] - GIT_CMD_REPOSITORY="https://$DESTINATION_REPOSITORY_USERNAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" then + GIT_CMD_REPOSITORY="https://$DESTINATION_REPOSITORY_USERNAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" +else echo "::error::API_TOKEN_GITHUB and SSH_DEPLOY_KEY are empty. Please fill one (recommended the SSH_DEPLOY_KEY" exit 1 fi