GitHub Actions outputs and needs
The output path
Passing a value between jobs needs more than a matching variable name. The producing step writes an output, the job exposes it, and a dependent job reads that output through needs. GitHub’s job-output guide shows each part.
For a fictional package release, trace a value called version from the producing step to the consuming job. An id identifies the step. The job-level output maps the step output to a public name. The consumer declares its dependency and reads needs.build.outputs.version when build is the producer.
Failure evidence
If the consumer gets an empty value, inspect each mapping. A successful producing command doesn’t prove that the job exposed the expected output. And a dependency controls execution order, not whether the value is suitable for a release.
The local exercises check selected output and dependency behavior. They don’t prove that a real build produced a valid package. Pair the output with the artifact handoff before making that claim.