Skip to content

Commit

Permalink
fix(deploy): only display promotion status for prod
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Aug 22, 2023
1 parent 2c4f790 commit e91f86a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export default class DeployImpl {
let isPackageToBeInstalled = pkgInfo.isPackageInstalled ? 'No' : 'Yes';
let promotionStatus = 'N/A';

if(isPackageToBeInstalled=="Yes")
if(isPackageToBeInstalled=="Yes" && this.props.promotePackagesBeforeDeploymentToOrg == this.props.targetUsername)
{
isPackageToBeInstalled = `![Yes](https://img.shields.io/badge/Yes-green.svg)`;
packageName = `**${packageName}**`;
Expand All @@ -572,6 +572,12 @@ export default class DeployImpl {
}
}
}

versionNumber = `**${versionNumber}**`;
versionInstalledInOrg = `**${versionInstalledInOrg}**`;
}
else
{
versionNumber = `**${versionNumber}**`;
versionInstalledInOrg = `**${versionInstalledInOrg}**`;
}
Expand Down

0 comments on commit e91f86a

Please sign in to comment.