From 2fd88d9c079da132faec47cc897fdcd159a9bd0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Spa=CC=8Angga=CC=8Ard?= Date: Wed, 20 Apr 2022 13:51:03 +0200 Subject: [PATCH] Now checking if correctly to know if we should run commit taging or not --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index ff12f87..51d2734 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -120,8 +120,8 @@ echo "[+] Pushing git commit" # --set-upstream: sets de branch when pushing to a branch that does not exist git push "https://$USER_NAME:$API_TOKEN_GITHUB@$GITHUB_SERVER/$DESTINATION_REPOSITORY_USERNAME/$DESTINATION_REPOSITORY_NAME.git" --set-upstream "$TARGET_BRANCH" -# Tag commit and push -if [ -v "$COMMIT_TAG" ] +# Tag commit and push if it is set +if [ ! -z "$COMMIT_TAG" ] then echo "[+] git tag" git tag $COMMIT_TAG