ci(models): run metadata check on pull requests

This commit is contained in:
Patrick Wozniak
2026-08-25 14:43:46 +02:00
parent f23863d326
commit 7ed38d5f70
2 changed files with 13 additions and 5 deletions
@@ -1,5 +1,5 @@
import { execFile } from "node:child_process"
import { appendFile, mkdtemp, readFile, rm } from "node:fs/promises"
import { mkdtemp, readFile, rm } from "node:fs/promises"
import { tmpdir } from "node:os"
import { join, resolve } from "node:path"
import { pathToFileURL } from "node:url"
@@ -302,9 +302,6 @@ async function main(): Promise<void> {
console.log(report)
const summaryPath = process.env.GITHUB_STEP_SUMMARY
if (summaryPath) await appendFile(summaryPath, report, "utf-8")
if (hasModelMetadataDiff(diff)) {
throw new Error(
`Static model metadata differs from command-code@${upstreamPackage.packageVersion}. Update src/models.ts and the snapshot version.`,