In action.yml for a composite action, which 'runs' configuration is required?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Composite actions set using: composite and list steps: almost like a job fragment. node20/main is for JavaScript actions; docker/image is for container actions.
Full explanation below image
Full Explanation
GitHub supports three custom action types: JavaScript (using: node16 or node20 with main), Docker (using: docker with image), and composite (using: composite with steps). A composite action bundles multiple run: or uses: steps behind one metadata file so callers invoke a single uses: line. using: reusable is not an action type — reusable workflows use on: workflow_call in a workflow file, not action.yml. Composite steps that use run: must specify shell:. Composite actions cannot directly run jobs or secrets: inherit the way reusable workflows can; they share the caller's job context. Choose composite for shared step sequences; choose reusable workflows for multi-job orchestration across a pipeline.