Pcornel
Automation · GitHub Actions

Reusable Workflows

Cheat sheet · https://pcornel.dk/topic.php?topic=5531

Back to the Topic

Answer

Reusable workflows are called from other workflows with uses: owner/repo/.github/workflows/file.yml@ref and workflow_call inputs and secrets, sharing standard pipelines across repositories.

Remember

  • workflow_call with inputs and secrets.
  • Version with refs.
  • Central maintenance.

First checks

  • workflow_call reusable workflows — sharing
  • Pin reusable workflow to SHA/tag — stability
  • Inputs/secrets passed explicitly — interface

Verify in this order

caller workflow → reusable workflow → jobs

Where it usually breaks

Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5531

Confirmation

Confirm action

Continue?