Browse Source

chore: release cut script should check ee changelog file

Zaiming (Stone) Shi 2 năm trước cách đây
mục cha
commit
445f4c235e
1 tập tin đã thay đổi với 12 bổ sung1 xóa
  1. 12 1
      scripts/rel/cut.sh

+ 12 - 1
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