github · GitHub Actions Docs
Actions Reuse workflows - GitHub Docs
Teaches how to create and call reusable workflow files to centralize automation logic and reduce duplication across multiple GitHub Actions workflows.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Reuse workflows - GitHub Docs
Teaches how to create and call reusable workflow files to centralize automation logic and reduce duplication across multiple GitHub Actions workflows.
When To Use
Use when you need to centralize common CI/CD logic into a single source of truth to be called by multiple different workflow files.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-how-tos-reuse-automations-workflows-github-docs-workflow-guide.md | A guide explaining how to create and use reusable workflows in GitHub Actions to avoid duplication. | Questions about a guide explaining how to create and use reusable workflows in GitHub Actions to avoid duplication. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r.text | A text example demonstrating the workflowcall trigger syntax used to define a reusable GitHub Actions workflow. | Exact payloads, commands, or snippets shown in A text example demonstrating the workflowcall trigger syntax used to define a reusable GitHub Actions workflow. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-2.text | A YAML configuration demonstrating the use of the workflow_call trigger and inputs for reusable GitHub Actions workflows. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating the use of the workflowcall trigger and inputs for reusable GitHub Actions workflows. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-3.text | A YAML configuration demonstrating how to call a reusable workflow within a GitHub Actions job. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating how to call a reusable workflow within a GitHub Actions job. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-4.text | A YAML-formatted example demonstrating how to call a reusable workflow from a caller workflow while passing inputs and secrets. | Exact payloads, commands, or snippets shown in A YAML-formatted example demonstrating how to call a reusable workflow from a caller workflow while passing inputs an... |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-5.text | A YAML configuration demonstrating how to call a reusable workflow using the uses and with keywords. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating how to call a reusable workflow using the uses and with keywords. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-6.text | A YAML configuration demonstrating a reusable workflow that accepts inputs and secrets to run the actions-labeler step. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating a reusable workflow that accepts inputs and secrets to run the actions-labeler step. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-7.text | A YAML configuration demonstrating how to call reusable workflows from both local and remote repositories within a GitHub Actions job. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating how to call reusable workflows from both local and remote repositories within a Gi... |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-8.text | A YAML configuration demonstrating how to call reusable workflows and pass inputs and secrets within GitHub Actions. | Exact payloads, commands, or snippets shown in A YAML configuration demonstrating how to call reusable workflows and pass inputs and secrets within GitHub Actions. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-9.text | A YAML-formatted example demonstrating how to call a reusable workflow using a matrix strategy to deploy to multiple environments. | Exact payloads, commands, or snippets shown in A YAML-formatted example demonstrating how to call a reusable workflow using a matrix strategy to deploy to multiple... |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-10.text | A YAML example demonstrating how to call a reusable workflow using the workflow_call trigger in GitHub Actions. | Exact payloads, commands, or snippets shown in A YAML example demonstrating how to call a reusable workflow using the workflowcall trigger in GitHub Actions. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-11.text | A YAML-formatted example demonstrating how to call a reusable workflow using the uses keyword and secrets inheritance. | Exact payloads, commands, or snippets shown in A YAML-formatted example demonstrating how to call a reusable workflow using the uses keyword and secrets inheritance. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-12.text | A YAML-formatted example demonstrating how to call a reusable workflow from another workflow using the uses keyword and passing secrets. | Exact payloads, commands, or snippets shown in A YAML-formatted example demonstrating how to call a reusable workflow from another workflow using the uses keyword a... |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-13.text | A YAML example demonstrating how to define a reusable workflow with job outputs and call it from another workflow. | Exact payloads, commands, or snippets shown in A YAML example demonstrating how to define a reusable workflow with job outputs and call it from another workflow. |
examples/actions-how-tos-reuse-automations-workflows-github-docs-github-actions-r-14.text | A YAML workflow example demonstrating how to call a reusable workflow and access its outputs in a caller workflow. | Exact payloads, commands, or snippets shown in A YAML workflow example demonstrating how to call a reusable workflow and access its outputs in a caller workflow. |
What This Skill Covers
-
- GitHub Actions / - How-tos / - Reuse automations / - Reuse workflows
- Main sections:
In this article,Creating a reusable workflow,Using inputs and secrets in a reusable workflow,Example reusable workflow,Example caller workflow.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows
