Interview Prep/GitHub Actions/Custom Actions & Reusable Workflows

What are the three kinds of custom action and how do you choose?

BeginnerConceptCustom Actions & Reusable Workflows
Answer
  • Composite (runs.using: composite): a list of steps, any language via run, can call other actions. Best for gluing existing tools.
  • JavaScript (runs.using: node24): runs directly on the runner, fastest startup, cross-platform, full toolkit (@actions/core, @actions/github). Best for logic and API calls.
  • Docker container (runs.using: docker): any language and dependencies in an image, but Linux runners only and slower (image build or pull each run).
All GitHub Actions questions Roadmap: GitHub Actions

More on Custom Actions & Reusable Workflows