GitHub
GITHUB-ACTIONS · Question #70
What is the minimal syntax for declaring an output named foo for an action? A. B. C. D.
The correct answer is C. outputs: foo: value: Some value. The correct minimal syntax for declaring an output in GitHub Actions is by using the foo key under outputs, and associating it with a value (in this case, Some value). This is the simplest form to define an output in a workflow or action.
Author and maintain actions
Question
What is the minimal syntax for declaring an output named foo for an action? A. B. C. D.
Options
- Aoutputs: foo: description: Some value
- Boutputs:
- key: foo description: Some value
- Coutputs: foo: value: Some value
- Doutputs:
- key: foo value: Some value
How the community answered
(29 responses)- A7% (2)
- C90% (26)
- D3% (1)
Explanation
The correct minimal syntax for declaring an output in GitHub Actions is by using the foo key under outputs, and associating it with a value (in this case, Some value). This is the simplest form to define an output in a workflow or action.
Topics
#action outputs#action.yml syntax#output declaration#action metadata
Community Discussion
No community discussion yet for this question.