chore: do not gnerate change log when first release or alpha, beta, rc

This commit is contained in:
Zaiming (Stone) Shi 2023-01-18 17:32:36 +01:00
parent 941216b6d0
commit e8910c9748
1 changed files with 18 additions and 1 deletions

View File

@ -218,7 +218,24 @@ generate_changelog () {
if [ "$DRYRUN" = 'yes' ]; then
logmsg "Release tag is ready to be created with command: git tag $TAG"
else
case "$TAG" in
*rc*)
true
;;
*alpha*)
true
;;
*beta*)
true
;;
e5.0.0*)
# the first release has no change log
true
;;
*)
generate_changelog
;;
esac
git tag "$TAG"
logmsg "$TAG is created OK."
fi