fix: verify postprocessed runtime gitops
This commit is contained in:
@@ -378,7 +378,7 @@ function injectRuntimeGitopsCommands(script) {
|
||||
return String(script).replace(
|
||||
/(node scripts\/run-bun\.mjs scripts\/gitops-render\.mjs[^\n]*--use-deploy-images[^\n]*)/g,
|
||||
(match) => {
|
||||
if (match.includes("--check")) return `${match}\n${verify}`;
|
||||
if (match.includes("--check")) return verify;
|
||||
return `${match}\n${postprocess}`;
|
||||
},
|
||||
);
|
||||
|
||||
@@ -97,7 +97,7 @@ function injectRuntimeGitopsCommands(script) {
|
||||
return String(script).replace(
|
||||
/(node scripts\/run-bun\.mjs scripts\/gitops-render\.mjs[^\n]*--use-deploy-images[^\n]*)/g,
|
||||
(match) => {
|
||||
if (match.includes("--check")) return hasVerify(script) ? match : `${match}\n${verify}`;
|
||||
if (match.includes("--check")) return hasVerify(script) ? match : verify;
|
||||
return hasPostprocess(script) ? match : `${match}\n${postprocess}`;
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user