Skip to content

Commit bd7013e

Browse files
committed
fixup! refactor(server): simplify GitHub API usage
1 parent 0766641 commit bd7013e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/MavenMetadataBuilding.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import io.github.oshai.kotlinlogging.KotlinLogging.logger
55
import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCoords
66
import io.github.typesafegithub.workflows.actionbindinggenerator.domain.SignificantVersion.FULL
77
import io.github.typesafegithub.workflows.shared.internal.model.Version
8+
import java.time.ZonedDateTime
89
import java.time.format.DateTimeFormatter
910
import io.github.typesafegithub.workflows.shared.internal.fetchAvailableVersions as defaultFetchAvailableVersions
1011

@@ -30,7 +31,7 @@ internal suspend fun ActionCoords.buildMavenMetadataFile(
3031
val lastUpdated =
3132
DateTimeFormatter
3233
.ofPattern("yyyyMMddHHmmss")
33-
.format(newest.getReleaseDate())
34+
.format(newest.getReleaseDate() ?: ZonedDateTime.now())
3435
return """
3536
<?xml version="1.0" encoding="UTF-8"?>
3637
<metadata>

0 commit comments

Comments
 (0)