Browse Source

ci: ignore

Aiden Cline 5 months ago
parent
commit
ee87e1f139
1 changed files with 4 additions and 0 deletions
  1. 4 0
      script/sync-zed.ts

+ 4 - 0
script/sync-zed.ts

@@ -74,6 +74,10 @@ async function main() {
   const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\]\\s+(?:.*\\s*)?)version = "[^"]+"`)
   const updatedToml = extensionsToml.replace(versionRegex, `$1version = "${cleanVersion}"`)
 
+  if (updatedToml === extensionsToml) {
+    throw new Error(`Failed to update version in extensions.toml - pattern not found`)
+  }
+
   await Bun.write(extensionsTomlPath, updatedToml)
   await $`git add extensions.toml`