Skip to content

Commit 6a8a551

Browse files
committed
fix(abg): use correct coordinates in generated POM file
1 parent c1dc24a commit 6a8a551

File tree

1 file changed

+3
-2
lines changed
  • maven-binding-builder/src/main/kotlin/io/github/typesafegithub/workflows/mavenbinding

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ internal const val LATEST_RELASED_LIBRARY_VERSION = "3.0.0"
66

77
internal fun ActionCoords.buildPomFile(): String {
88
val nameForRepo = name.substringBefore("__")
9+
val nameForDisplay = name.replace("__", "/")
910
return """
1011
<?xml version="1.0" encoding="UTF-8"?>
1112
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1213
<modelVersion>4.0.0</modelVersion>
1314
<groupId>$owner</groupId>
1415
<artifactId>$name</artifactId>
1516
<version>$version</version>
16-
<name>$name</name>
17-
<description>Auto-generated binding for $owner/$name@$version.</description>
17+
<name>$nameForDisplay</name>
18+
<description>Auto-generated binding for $owner/$nameForDisplay@$version.</description>
1819
<url>https://github.com/$owner/$nameForRepo</url>
1920
<scm>
2021
<connection>scm:git:git://github.com/$owner/$nameForRepo.git/</connection>

0 commit comments

Comments
 (0)