File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ _NOTE: set the fetch-depth for `actions/checkout@v2` or newer to be sure you ret
104
104
- ` full ` : attempt to show all history, does not work on rebase and squash due missing HEAD [ should be deprecated in v2 is breaking many workflows]
105
105
- ` last ` : show the single last commit
106
106
- ` compare ` : show all commits since previous repo tag number
107
+ - ** FORCE_WITHOUT_CHANGES** _ (optional)_ - Enforce the brach creation even if there are no changes from the tag.
107
108
108
109
### Outputs
109
110
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ minor_string_token=${MINOR_STRING_TOKEN:-#minor}
21
21
patch_string_token=${PATCH_STRING_TOKEN:-# patch}
22
22
none_string_token=${NONE_STRING_TOKEN:-# none}
23
23
branch_history=${BRANCH_HISTORY:- compare}
24
+ force_without_changes=${FORCE_WITHOUT_CHANGES:- false}
25
+
24
26
# since https://github.blog/2022-04-12-git-security-vulnerability-announced/ runner uses?
25
27
git config --global --add safe.directory /github/workspace
26
28
@@ -45,6 +47,7 @@ echo -e "\tMINOR_STRING_TOKEN: ${minor_string_token}"
45
47
echo -e " \tPATCH_STRING_TOKEN: ${patch_string_token} "
46
48
echo -e " \tNONE_STRING_TOKEN: ${none_string_token} "
47
49
echo -e " \tBRANCH_HISTORY: ${branch_history} "
50
+ echo -e " \tFORCE: ${force_without_changes} "
48
51
49
52
# verbose, show everything
50
53
if $verbose
@@ -124,7 +127,7 @@ tag_commit=$(git rev-list -n 1 "$tag" || true )
124
127
# get current commit hash
125
128
commit=$( git rev-parse HEAD)
126
129
# skip if there are no new commits for non-pre_release
127
- if [ " $tag_commit " == " $commit " ]
130
+ if [ " $tag_commit " == " $commit " ] && [ " $force_without_changes " == " false " ]
128
131
then
129
132
echo " No new commits since previous tag. Skipping..."
130
133
setOutput " new_tag" " $tag "
You can’t perform that action at this time.
0 commit comments