diff --git a/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/publish.ts b/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/publish.ts index 7192c0b54..0fca5e658 100644 --- a/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/publish.ts +++ b/packages/sfpowerscripts-cli/src/commands/sfpowerscripts/orchestrator/publish.ts @@ -231,7 +231,7 @@ export default class Promote extends SfpowerscriptsCommand { } - if (this.flags.daysToKeep && this.flags.limit) { + if (this.flags.gittagage && this.flags.gittaglimit) { await this.deleteGitTagsOlderThan(this.flags.gittagage, this.flags.gittaglimit); } else if (this.flags.gittagage) { await this.deleteGitTagsOlderThan(succesfullyPublishedPackageNamesForTagging, this.flags.gittagage);