diff --git a/platform/build-scripts/icons/src/org/jetbrains/intellij/build/images/sync/checkIcons.kt b/platform/build-scripts/icons/src/org/jetbrains/intellij/build/images/sync/checkIcons.kt index 108455995f0a..0aeb2485f8c4 100644 --- a/platform/build-scripts/icons/src/org/jetbrains/intellij/build/images/sync/checkIcons.kt +++ b/platform/build-scripts/icons/src/org/jetbrains/intellij/build/images/sync/checkIcons.kt @@ -38,8 +38,13 @@ internal fun checkIcons(context: Context = Context(), loggerImpl: Consumer searchForAllChangedIcons(context, devRepoVcsRoots) } } - syncIcons(context) - report(context, skippedDirs.size) + if (context.devChanges().isEmpty() && context.iconsChanges().isEmpty()) { + log("No changes are found") + } + else { + syncIcons(context) + report(context, skippedDirs.size) + } } private enum class SearchType { MODIFIED, REMOVED_BY_DEV, REMOVED_BY_DESIGNERS } @@ -106,13 +111,8 @@ private fun searchForChangedIconsByDesigners(context: Context, devRepoVcsRoots: iterator.remove() } } - if (context.iconsChanges().isEmpty()) { - searchForAllChangedIcons(context, devRepoVcsRoots) - } - else { - log("Found ${context.iconsCommitHashesToSync.size} commits to sync from ${context.iconsRepoName} to ${context.devRepoName}") - log(context.iconsCommitHashesToSync.joinToString()) - } + log("Found ${context.iconsCommitHashesToSync.size} commits to sync from ${context.iconsRepoName} to ${context.devRepoName}") + log(context.iconsCommitHashesToSync.joinToString()) } private fun searchForChangedIconsByDev(context: Context, devRepoVcsRoots: List) { @@ -150,13 +150,8 @@ private fun searchForChangedIconsByDev(context: Context, devRepoVcsRoots: List