From c22200877cd1ab7aa05ae8ab55cf213357e00fba Mon Sep 17 00:00:00 2001 From: Steven Lumos Date: Tue, 17 Dec 2024 12:20:18 -0800 Subject: [PATCH] fix: add --local-repo-root option (with thanks to #53) --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 02bb3ba..1f2463c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -282,7 +282,7 @@ _Updated at ${new Date().toLocaleString('en-US', { timeZone: 'America/Los_Angele const diffs: Diff[] = []; await asyncForEach(apps, async app => { - const command = `app diff ${app.metadata.name} --local=${app.spec.source.path}`; + const command = `app diff ${app.metadata.name} --local-repo-root=${process.cwd()} --local=${app.spec.source.path}`; try { core.info(`Running: argocd ${command}`); // ArgoCD app diff will exit 1 if there is a diff, so always catch,