diff --git a/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/workers/PublishArtifactWorkerBase.kt b/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/workers/PublishArtifactWorkerBase.kt index a59be954..4482262e 100644 --- a/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/workers/PublishArtifactWorkerBase.kt +++ b/play/plugin/src/main/kotlin/com/github/triplet/gradle/play/tasks/internal/workers/PublishArtifactWorkerBase.kt @@ -22,10 +22,10 @@ internal abstract class PublishArtifactWorkerBase { val locales = parameters.releaseNotesDir.orNull?.asFile?.listFiles().orEmpty() return locales.mapNotNull { locale -> - var result = File(locale, "$track.txt").orNull() - if (result == null) result = File(locale, RELEASE_NOTES_DEFAULT_NAME).orNull() - result + File(locale, "${track.replace(':', '-')}.txt").orNull() + ?: File(locale, "${track.substringAfter(':')}.txt").orNull() + ?: File(locale, RELEASE_NOTES_DEFAULT_NAME).orNull() }.associate { notes -> notes.parentFile.name to notes.readProcessed() }.toSortedMap()