Nikky
08/30/2022, 4:21 PMval setOutputJob = job(
id = "set_output",
runsOn = RunnerType.UbuntuLatest,
) {
run(
name = "set output",
command = """echo "::set-output name=test::value"""",
)
.withOutputMapping("test", "test")
uses(SetupPythonV4())
.withOutputMapping("pythonVersion") { pythonVersion }
}
job(
id = "use_output",
runsOn = RunnerType.UbuntuLatest,
needs = listOf(setOutputJob),
) {
val test by Contexts.outputs(setOutputJob)
val pythonVersion by Contexts.outputs(setOutputJob)
run(
name = "use output test",
command = """echo $test""",
)
run(
name = "use output pythonversion",
command = """echo $pythonVersion""",
)
}