Skip to content

Commit

Permalink
fix: add --local-repo-root option (with thanks to #53)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenlumos-qz committed Dec 17, 2024
1 parent 4e14c98 commit c222008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c222008

Please sign in to comment.