Bläddra i källkod

chore: release cut script should check ee changelog file

Zaiming (Stone) Shi 2 år sedan
förälder
incheckning
445f4c235e
1 ändrade filer med 12 tillägg och 1 borttagningar
  1. 12 1
      scripts/rel/cut.sh

+ 12 - 1
scripts/rel/cut.sh

@@ -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