fix: fail ci-json commands on contract drift
This commit is contained in:
@@ -621,7 +621,10 @@ function ciJsonScript(ci) {
|
|||||||
];
|
];
|
||||||
for (const command of commands) {
|
for (const command of commands) {
|
||||||
lines.push(`echo ${shellSingleQuote(`CI.json command: ${command.name}`)}`);
|
lines.push(`echo ${shellSingleQuote(`CI.json command: ${command.name}`)}`);
|
||||||
|
lines.push("(");
|
||||||
|
lines.push("set -eu");
|
||||||
lines.push(command.run);
|
lines.push(command.run);
|
||||||
|
lines.push(")");
|
||||||
}
|
}
|
||||||
return `${lines.join("\n")}\n`;
|
return `${lines.join("\n")}\n`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user