How do reusable workflows and composite actions reduce duplication?
⚡
Quick Answer
Reusable workflows call an entire workflow with inputs/secrets; composite actions bundle repeated steps into one action.
Detailed Answer
Define a deploy workflow once and call it per environment with uses: ./.github/workflows/deploy.yml and with:/secrets:. Composite actions package a sequence of steps (action.yml) shared across repos. Both keep pipelines DRY and consistent.
💡
Interview Tip
Distinguish reusable workflow (whole job graph) from composite action (step bundle).
github-actionsreusedry