chore: release cut script should check ee changelog file

This commit is contained in:
Zaiming (Stone) Shi 2023-09-07 09:51:37 +02:00
parent db2ec55aa0
commit 445f4c235e
1 changed files with 12 additions and 1 deletions

View File

@ -253,6 +253,14 @@ generate_changelog () {
fi fi
} }
check_changelog() {
local file="changes/${TAG}.en.md"
if [ ! -f "$file" ]; then
logerr "Changelog file $file is missing."
exit 1
fi
}
if [ "$DRYRUN" = 'yes' ]; then if [ "$DRYRUN" = 'yes' ]; then
logmsg "Release tag is ready to be created with command: git tag $TAG" logmsg "Release tag is ready to be created with command: git tag $TAG"
else else
@ -266,7 +274,10 @@ else
*beta*) *beta*)
true true
;; ;;
*) e*)
check_changelog
;;
v*)
generate_changelog generate_changelog
;; ;;
esac esac