From 0ad4c8ce73dbc2e59d0f4c5ca4790497f78226de Mon Sep 17 00:00:00 2001 From: Stefan Zweifel Date: Thu, 5 Mar 2020 20:35:32 +0100 Subject: [PATCH] Fix _tag_commit --- entrypoint.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b197bbc..32b9c4e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -62,10 +62,8 @@ _local_commit() { } _tag_commit() { - if [ -z "$INPUT_TAGGING_MESSAGE" ] + if [ -n "$INPUT_TAGGING_MESSAGE" ] then - # No tag name given. Do nothing. - else git tag -a "$INPUT_TAGGING_MESSAGE" -m "$INPUT_TAGGING_MESSAGE" fi }