github · GitHub Actions Docs
Actions Using labels with self-hosted runners - GitHub Docs
Explains how to assign and use custom labels on self-hosted runners to control job routing and ensure workflows execute on specific hardware or environments.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Actions Using labels with self-hosted runners - GitHub Docs
Explains how to assign and use custom labels on self-hosted runners to control job routing and ensure workflows execute on specific hardware or environments.
When To Use
Use when you need to route specific GitHub Actions jobs to particular self-hosted runners based on custom attributes like operating system, architecture, or hardware capabilities.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/actions-how-tos-manage-runners-using-labels-with-self-hosted-github-docs-workflow-guide.md | A guide explaining how to create and apply custom labels to repository and organization self-hosted runners in GitHub Actions. | Questions about a guide explaining how to create and apply custom labels to repository and organization self-hosted runners in GitHub... |
examples/actions-how-tos-manage-runners-using-labels-with-self-hosted-github-docs.text | A shell command demonstrating how to register a self-hosted runner with specific labels using the config.sh script. | Exact payloads, commands, or snippets shown in A shell command demonstrating how to register a self-hosted runner with specific labels using the config.sh script. |
examples/actions-how-tos-manage-runners-using-labels-with-self-hosted-github-docs-2.text | A shell command demonstrating how to register a self-hosted runner with specific labels using the config.sh script. | Exact payloads, commands, or snippets shown in A shell command demonstrating how to register a self-hosted runner with specific labels using the config.sh script. |
What This Skill Covers
-
- GitHub Actions / - How-tos / - Manage runners / - Self-hosted runners / - Apply labels
- Main sections:
In this article,Creating a custom label,Creating a custom label for a repository runner,Creating a custom label for an organization runner,Assigning a label to a self-hosted runner.
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/manage-runners/self-hosted-runners/apply-labels
