diff --git a/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/MavenMetadataBuilding.kt b/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/MavenMetadataBuilding.kt index bf0e7e08a..d7473eea7 100644 --- a/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/MavenMetadataBuilding.kt +++ b/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/MavenMetadataBuilding.kt @@ -1,15 +1,12 @@ package io.github.typesafegithub.workflows.mavenbinding +import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCoords import io.github.typesafegithub.workflows.shared.internal.fetchAvailableVersions import java.time.Instant import java.time.ZoneId import java.time.format.DateTimeFormatter -internal suspend fun buildMavenMetadataFile( - owner: String, - name: String, - githubToken: String, -): String { +internal suspend fun ActionCoords.buildMavenMetadataFile(githubToken: String): String { val lastUpdated = DateTimeFormatter .ofPattern("yyyyMMddHHmmss") @@ -23,7 +20,7 @@ internal suspend fun buildMavenMetadataFile( $owner - ${name.replace("__", "/")} + $name $newest $newest diff --git a/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/PackageArtifactsBuilding.kt b/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/PackageArtifactsBuilding.kt index d26cad6de..25b20ea38 100644 --- a/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/PackageArtifactsBuilding.kt +++ b/maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding/PackageArtifactsBuilding.kt @@ -3,7 +3,7 @@ package io.github.typesafegithub.workflows.mavenbinding import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCoords suspend fun ActionCoords.buildPackageArtifacts(githubToken: String): Map { - val mavenMetadata = buildMavenMetadataFile(owner = owner, name = name, githubToken = githubToken) + val mavenMetadata = buildMavenMetadataFile(githubToken = githubToken) return mapOf( "maven-metadata.xml" to mavenMetadata, )