GH-200 · Question #33
What are the most significant advantages of adding documentation while distributing custom actions? (Each answer presents a complete solution. Choose two.)
The correct answer is B. It shares the description of the action to the users. D. It creates a readme.md for the consuming workflow. Documenting custom actions benefits consumers by clearly describing the action's purpose and providing a README that serves as a usage reference.
Question
What are the most significant advantages of adding documentation while distributing custom actions? (Each answer presents a complete solution. Choose two.)
Options
- AIt generates auto completion when using the action in a workflow.
- BIt shares the description of the action to the users.
- CIt provides an example of the action.
- DIt creates a readme.md for the consuming workflow.
How the community answered
(39 responses)- A3% (1)
- B92% (36)
- C5% (2)
Why each option
Documenting custom actions benefits consumers by clearly describing the action's purpose and providing a README that serves as a usage reference.
GitHub Actions does not use action documentation files to drive IDE or editor auto-completion; auto-completion in workflow YAML is powered by JSON Schema definitions, not README or description content.
A description in the action's documentation - via action.yml and accompanying prose - communicates the action's purpose, inputs, outputs, and behavior to users without requiring them to read source code, enabling informed adoption.
While including examples is a documentation best practice, it is a component of what good documentation contains rather than a standalone advantage of documentation itself as a distribution artifact.
A README.md in the action's repository is the primary documentation artifact visible to consuming workflow authors; it provides usage instructions, configuration details, and context that help users integrate the action correctly.
Concept tested: Best practices for documenting and distributing custom GitHub Actions
Source: https://docs.github.com/en/actions/sharing-automations/creating-actions/about-custom-actions
Topics
Community Discussion
No community discussion yet for this question.