Skip to content

Commit

Permalink
fix(abg): use correct coordinates and file names in generated GMM file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vampire committed Aug 21, 2024
1 parent 7e7e61c commit 4579b77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package io.github.typesafegithub.workflows.mavenbinding

internal fun buildModuleFile(
owner: String,
name: String,
version: String,
): String =
import io.github.typesafegithub.workflows.actionbindinggenerator.domain.ActionCoords

internal fun ActionCoords.buildModuleFile(): String =
"""
{
"formatVersion": "1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ data class JarArtifact(
fun ActionCoords.buildVersionArtifacts(types: String? = null): Map<String, Artifact>? {
val jars = buildJars(owner = owner, name = name.replace("__", "/"), version = version, types = types) ?: return null
val pom = buildPomFile(owner = owner, name = name.replace("__", "/"), version = version)
val module = buildModuleFile(owner = owner, name = name.replace("__", "/"), version = version)
val module = buildModuleFile()
return mapOf(
"$name-$version.jar" to JarArtifact(jars.mainJar),
"$name-$version.jar.md5" to TextArtifact(jars.mainJar.md5Checksum()),
Expand Down

0 comments on commit 4579b77

Please sign in to comment.