D3: Action Structure & Metadata
GH-200 GitHub Actions exam practice questions · 10 flashcards
Question
Required metadata file?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Action Structure & Metadata practice questions and answers
- Required metadata file?action.yml or action.yaml in the action's root.
- action.yml keys?name, description, author, inputs, outputs, runs, branding.
- runs for JS action?using: node20/node24, main: dist/index.js, optional pre/post.
- runs for Docker action?using: docker, image: Dockerfile or docker://image, args, entrypoint.
- runs for composite action?using: composite, steps: (each run step needs shell:).
- Input naming in code?Inputs available as INPUT_<NAME> env vars or core.getInput().
- Outputs in composite action?outputs.<name>.value: ${{ steps.x.outputs.y }}.
- Branding?icon and color for Marketplace display.
- Workflow commands in actions?Use toolkit or echo commands (::error::, GITHUB_OUTPUT).
- Directory structure?Action in repo root for Marketplace; or subfolder referenced as owner/repo/path@ref.