Skip to content

Commit 8e6e794

Browse files
authored
feat(server): support nested actions (#1356)
Part of #1318.
1 parent 713fa35 commit 8e6e794

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/test-script-consuming-jit-bindings.main.do-not-compile.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,15 @@
33
@file:DependsOn("io.github.typesafegithub:github-workflows-kt:1.13.0")
44

55
@file:Repository("http://localhost:8080/binding/")
6+
7+
// Regular, top-level action.
68
@file:DependsOn("actions:checkout:v4")
79

10+
// Nested action.
11+
@file:DependsOn("gradle:actions__setup-gradle:v3")
12+
813
import io.github.typesafegithub.workflows.actions.actions.Checkout
14+
import io.github.typesafegithub.workflows.actions.gradle.ActionsSetupGradle
15+
916
println(Checkout())
17+
println(ActionsSetupGradle())

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ data class JarArtifact(val data: ByteArray) : Artifact {
2121

2222
fun ActionCoords.buildVersionArtifacts(): Map<String, Artifact> =
2323
mapOf(
24-
"$name-$version.jar" to JarArtifact(buildJar(owner = owner, name = name, version = version)),
25-
"$name-$version.pom" to TextArtifact(buildPomFile(owner = owner, name = name, version = version)),
26-
"$name-$version.module" to TextArtifact(buildModuleFile(owner = owner, name = name, version = version)),
24+
"$name-$version.jar" to JarArtifact(buildJar(owner = owner, name = name.replace("__", "/"), version = version)),
25+
"$name-$version.pom" to TextArtifact(buildPomFile(owner = owner, name = name.replace("__", "/"), version = version)),
26+
"$name-$version.module" to TextArtifact(buildModuleFile(owner = owner, name = name.replace("__", "/"), version = version)),
2727
)

0 commit comments

Comments
 (0)