the thing missing though is that output mapping on...
# github-workflows-kt
n
the thing missing though is that output mapping on the job.. and acessing that from other jobs .. building a PR for it
Copy code
val 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""",
                )
            }