Interview Prep/Git & GitHub/GitHub Actions, environments and releases in production

How do reusable workflows differ from composite actions and when do you use each?

IntermediateProductionGitHub Actions, environments and releases in production
Answer

A reusable workflow (workflow_call) is a whole job graph with its own runners, secrets and permissions, called by a job. A composite action bundles steps and runs inside the caller's job. Use reusable workflows to standardise pipelines org-wide, composite actions for small repeated step groups.

jobs:
  ci:
    uses: org/.github/.github/workflows/node-ci.yml@v3
    secrets: inherit
All Git & GitHub questions Roadmap: Git & GitHub

More on GitHub Actions, environments and releases in production