@@ -23,6 +23,7 @@ none_string_token=${NONE_STRING_TOKEN:-#none}
23
23
branch_history=${BRANCH_HISTORY:- compare}
24
24
force_without_changes=${FORCE_WITHOUT_CHANGES:- false}
25
25
force_without_changes_pre=${FORCE_WITHOUT_CHANGES:- false}
26
+ tag_message=${TAG_MESSAGE:- " " }
26
27
27
28
# since https://github.blog/2022-04-12-git-security-vulnerability-announced/ runner uses?
28
29
git config --global --add safe.directory /github/workspace
@@ -50,6 +51,7 @@ echo -e "\tNONE_STRING_TOKEN: ${none_string_token}"
50
51
echo -e " \tBRANCH_HISTORY: ${branch_history} "
51
52
echo -e " \tFORCE_WITHOUT_CHANGES: ${force_without_changes} "
52
53
echo -e " \tFORCE_WITHOUT_CHANGES_PRE: ${force_without_changes_pre} "
54
+ echo -e " \tTAG_MESSAGE: ${tag_message} "
53
55
54
56
# verbose, show everything
55
57
if $verbose
@@ -245,9 +247,16 @@ then
245
247
exit 0
246
248
fi
247
249
248
- echo " EVENT: creating local tag $new "
249
- # create local git tag
250
- git tag -f " $new " || exit 1
250
+ # Modify the tag creation part
251
+ if [ -n " $tag_message " ]
252
+ then
253
+ echo " EVENT: creating local tag $new with message: $tag_message "
254
+ git tag -a " $new " -m " $tag_message " || exit 1
255
+ else
256
+ echo " EVENT: creating local tag $new "
257
+ git tag -f " $new " || exit 1
258
+ fi
259
+
251
260
echo " EVENT: pushing tag $new to origin"
252
261
253
262
if $git_api_tagging
0 commit comments