Skip to content

Commit 71f4f1e

Browse files
committed
fix(abg): correct paths in source jar
1 parent 98d9d5f commit 71f4f1e

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
@@ -88,15 +88,15 @@ public fun ActionCoords.generateBinding(
8888
return listOfNotNull(
8989
ActionBinding(
9090
kotlinCode = actionBindingSourceCodeUntyped,
91-
filePath = "kotlin/io/github/typesafegithub/workflows/actions/$packageName/$classNameUntyped.kt",
91+
filePath = "io/github/typesafegithub/workflows/actions/$packageName/$classNameUntyped.kt",
9292
className = classNameUntyped,
9393
packageName = packageName,
9494
typingActualSource = null,
9595
),
9696
classNameAndSourceCodeTyped?.let { (className, actionBindingSourceCode) ->
9797
ActionBinding(
9898
kotlinCode = actionBindingSourceCode,
99-
filePath = "kotlin/io/github/typesafegithub/workflows/actions/$packageName/$className.kt",
99+
filePath = "io/github/typesafegithub/workflows/actions/$packageName/$className.kt",
100100
className = className,
101101
packageName = packageName,
102102
typingActualSource = inputTypingsResolved.second,

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)