Merge pull request #1541 from pikasTech/fix/1534-runtime-gitops-check-order

fix: verify postprocessed runtime gitops
This commit is contained in:
Lyon
2026-07-05 01:57:51 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
@@ -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}`;
},
);