In a composite action, a step with 'id: prep' sets an output 'version'. How do you expose 'version' to workflows that use the action?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Composite actions support an outputs map in action.yml that references step outputs from the composite runs.steps list.
Full explanation below image
Full Explanation
action.yml for composite actions includes runs.using: composite, runs.steps, and optional outputs. Each output value expression references steps within the composite action. Callers then use steps.<step_id>.outputs.version in the workflow after uses:. GITHUB_ENV affects environment variables within the action's steps but is not the formal output interface. workflow_call.outputs belongs to reusable workflows, not composite actions. JavaScript actions set outputs via the toolkit but composite uses YAML mappings.