Now checking if correctly to know if we should run commit taging or not

This commit is contained in:
Magnus Spånggård 2022-04-20 13:51:03 +02:00
parent 6404b153ed
commit 2fd88d9c07

View File

@ -120,8 +120,8 @@ echo "[+] Pushing git commit"
# --set-upstream: sets de branch when pushing to a branch that does not exist # --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" 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 # Tag commit and push if it is set
if [ -v "$COMMIT_TAG" ] if [ ! -z "$COMMIT_TAG" ]
then then
echo "[+] git tag" echo "[+] git tag"
git tag $COMMIT_TAG git tag $COMMIT_TAG