Skip to content

Commit

Permalink
fix: warn if empty allowedPostUpgradeCommands (#29538)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jun 8, 2024
1 parent 4354dd9 commit b394f30
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,9 @@ export default async function executePostUpgradeCommands(
config.updatedPackageFiles.length > 0) ||
(is.array(config.updatedArtifacts) && config.updatedArtifacts.length > 0);

if (
if (!hasChangedFiles) {
/* Only run post-upgrade tasks if there are changes to package files... */
!hasChangedFiles ||
is.emptyArray(GlobalConfig.get('allowedPostUpgradeCommands'))
) {
logger.debug('No changes to package files, skipping post-upgrade tasks');
return null;
}

Expand Down

0 comments on commit b394f30

Please sign in to comment.