Skip to content

Commit 7b6a4af

Browse files
authored
fix(abg): correct paths in source jar (#1600)
1 parent 6910481 commit 7b6a4af

File tree

2 files changed

+3
-3
lines changed
  • action-binding-generator/src
    • main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation
    • test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator

2 files changed

+3
-3
lines changed

action-binding-generator/src/main/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/generation/Generation.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public fun ActionCoords.generateBinding(
8080
return listOfNotNull(
8181
ActionBinding(
8282
kotlinCode = actionBindingSourceCodeUntyped,
83-
filePath = "kotlin/io/github/typesafegithub/workflows/actions/$packageName/$classNameUntyped.kt",
83+
filePath = "io/github/typesafegithub/workflows/actions/$packageName/$classNameUntyped.kt",
8484
className = classNameUntyped,
8585
packageName = packageName,
8686
typingActualSource = null,
@@ -95,7 +95,7 @@ public fun ActionCoords.generateBinding(
9595
)
9696
ActionBinding(
9797
kotlinCode = actionBindingSourceCode,
98-
filePath = "kotlin/io/github/typesafegithub/workflows/actions/$packageName/$className.kt",
98+
filePath = "io/github/typesafegithub/workflows/actions/$packageName/$className.kt",
9999
className = className,
100100
packageName = packageName,
101101
typingActualSource = it,

action-binding-generator/src/test/kotlin/io/github/typesafegithub/workflows/actionbindinggenerator/Utils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fun List<ActionBinding>.shouldContainAndMatchFile(path: String) {
2121
}
2222
val actualContent = binding.kotlinCode.removeWindowsNewLines()
2323

24-
binding.filePath shouldBe "kotlin/io/github/typesafegithub/workflows/actions/johnsmith/$path"
24+
binding.filePath shouldBe "io/github/typesafegithub/workflows/actions/johnsmith/$path"
2525

2626
if (System.getenv("GITHUB_ACTIONS") == "true") {
2727
actualContent shouldBe expectedContent

0 commit comments

Comments
 (0)