GitHub Actions: From First Workflow to Reusable

GitHub Actions in 30 minutes: enough to ship; the reusable pattern is what scales it across an org.

Step 1: First workflow

# .github/workflows/ci.yml
on: [push]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - run: echo "hello"

Step 2: Real CI

Step 3: Make it reusable

Reusable workflows are the leverage that turns Actions from a per-repo hack into a platform. Refactor once, consume many times.

Step 4: Consume from other repos

Consumers reference the shared workflow by repo path and tag. The consumer's CI shrinks to a few lines; logic lives in the shared repo.

Antipatterns

What to do this week

Three moves. (1) Run the tutorial end-to-end on your own laptop / sandbox. (2) Apply the pattern to one production workload. (3) Document the variations you needed; share with the team.