Skip to content

Commit

Permalink
Only set pre_tag to initial version if no previous was found and it i…
Browse files Browse the repository at this point in the history
…s a pre_release
  • Loading branch information
ivanpk committed Jul 26, 2021
1 parent 9885a4f commit 22f1a11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion entrypoint.sh
Expand Up @@ -62,7 +62,10 @@ if [ -z "$tag" ]
then
log=$(git log --pretty='%B')
tag="$initial_version"
pre_tag="$initial_version"
if [ -z "$pre_tag" ] && $pre_release
then
pre_tag="$initial_version"
fi
else
log=$(git log $tag..HEAD --pretty='%B')
fi
Expand Down

0 comments on commit 22f1a11

Please sign in to comment.