jmfayard
02/02/2022, 3:55 PMuses
api not very intuitive (although it follows GitHub convention)
uses(
name = "Download common artifact",
action = DownloadArtifactV2(
name = "common-artifact",
path = "python",
)
)
I was thinking about adding this syntactic sugar
fun step(name: String, condition: String? = null, action: () -> Action)
so that we can do something like this
step("Download common artifact") {
DownloadArtifactV2(
name = "common-artifact",
path = "python",
)
}
Piotr Krzemiński
02/02/2022, 4:40 PMActionNameV2(arg1, arg2)
but I have no prototype yet. The goal is to mimic regular function calls: do this, then do that. It would be even more compact than YAMLPiotr Krzemiński
02/02/2022, 4:41 PMPiotr Krzemiński
02/02/2022, 4:41 PM