Which syntax correctly accesses a job output (output1) of an upstream job (job1) from a dependent job within a workflow?
${{needs.job1.outputs.output1}}
${{needs.job1.output1}}
${{depends.job1.output1}}
${{job1.outputs.output1}}
The needs context is used to reference the outputs of jobs that are dependencies of the current job. In this case, needs.job1.outputs.output1 correctly accesses the output of output1 from the job job1 in the dependent job.