diff --git a/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts b/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts index a44f1c7906e476a5655d9f39cb4aff6f3010e05f..fd4aa9d14bae2d2c74e34e76f82df75230a5969e 100644 --- a/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts +++ b/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts @@ -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; }