From 445f4c235e2db3cd799fbe5d397122e8b555cc7d Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Thu, 7 Sep 2023 09:51:37 +0200 Subject: [PATCH] chore: release cut script should check ee changelog file --- scripts/rel/cut.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/rel/cut.sh b/scripts/rel/cut.sh index f779a12b9..a7d4408b1 100755 --- a/scripts/rel/cut.sh +++ b/scripts/rel/cut.sh @@ -253,6 +253,14 @@ generate_changelog () { 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 logmsg "Release tag is ready to be created with command: git tag $TAG" else @@ -266,7 +274,10 @@ else *beta*) true ;; - *) + e*) + check_changelog + ;; + v*) generate_changelog ;; esac