From 4144bb818c0bbdbe63550e79707667374b06b1a4 Mon Sep 17 00:00:00 2001 From: Codex Date: Tue, 26 May 2026 20:15:20 +0800 Subject: [PATCH] fix: fail ci-json commands on contract drift --- scripts/g14-gitops-render.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/g14-gitops-render.mjs b/scripts/g14-gitops-render.mjs index 86d52993..afc42d5b 100644 --- a/scripts/g14-gitops-render.mjs +++ b/scripts/g14-gitops-render.mjs @@ -621,7 +621,10 @@ function ciJsonScript(ci) { ]; for (const command of commands) { lines.push(`echo ${shellSingleQuote(`CI.json command: ${command.name}`)}`); + lines.push("("); + lines.push("set -eu"); lines.push(command.run); + lines.push(")"); } return `${lines.join("\n")}\n`; }