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
More on GitHub Actions, environments and releases in production
How do you structure workflows for a typical service (build, test, deploy)?BeginnerHow do you speed up slow GitHub Actions pipelines?IntermediateDesign a progressive delivery pipeline from merge to production using GitHub Actions and environments.AdvancedHow do you manage secrets and variables across org, repo and environment levels?IntermediateWhat does `concurrency` do in a deploy workflow and why does it matter?BeginnerHow do you automate versioning and release notes?Intermediate