Define and consume a GitHub Actions reusable workflow via workflow_call

domain: docs.github.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In the called workflow file, set the top-level trigger to 'on: workflow_call:' and declare any inputs, outputs, and secrets under that key
  2. Reference the reusable workflow from a caller workflow using 'uses: owner/repo/.github/workflows/called.yml@ref' inside a job, replacing ref with a branch, tag, or SHA
  3. Pass inputs with 'with:' and secrets with 'secrets:' (or 'secrets: inherit' to forward all caller secrets automatically)
  4. Pin the ref to a specific SHA or tag for supply-chain safety; avoid 'main' in production callers
  5. Validate the workflow locally with 'act' or push to a draft PR to surface schema errors before merging

Known gotchas

Related routes

Structure GitHub Actions reusable workflows (workflow_call) for cross-repository sharing
docs.github.com · 6 steps · unrated
Trigger a GitHub Actions workflow via API and pass inputs
github-actions · 4 steps · unrated
Trigger a GitHub Actions workflow_dispatch event via the REST API
docs.github.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans