Prompt Buddy logoPrompt Buddy

github · GitHub Actions Docs

Actions Using self-hosted runners in a workflow - GitHub Docs

Configures GitHub Actions workflows to execute jobs on specific self-hosted runners by using the runners key in a job definition.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Actions Using self-hosted runners in a workflow - GitHub Docs

Configures GitHub Actions workflows to execute jobs on specific self-hosted runners by using the runners key in a job definition.

When To Use

Use when you need to specify which self-hosted runner or runner group should execute a particular job in a GitHub Actions workflow file.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/actions-how-tos-manage-runners-using-self-hosted-in-a-workflow-github-do-workflow-guide.mdA guide on configuring GitHub Actions workflows to target self-hosted runners using default and custom labels.Questions about a guide on configuring GitHub Actions workflows to target self-hosted runners using default and custom labels.
examples/actions-how-tos-manage-runners-using-self-hosted-in-a-workflow-github-do.textA YAML workflow configuration demonstrating how to target self-hosted runners using the runs-on property.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to target self-hosted runners using the runs-on property.
examples/actions-how-tos-manage-runners-using-self-hosted-in-a-workflow-github-do-2.textA YAML workflow configuration demonstrating how to target self-hosted runners using specific labels in the runs-on field.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to target self-hosted runners using specific labels in the runs-on fi...
examples/actions-how-tos-manage-runners-using-self-hosted-in-a-workflow-github-do-3.textA YAML workflow configuration demonstrating how to target a specific runner group using the runs-on key in GitHub Actions.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to target a specific runner group using the runs-on key in GitHub Act...
examples/actions-how-tos-manage-runners-using-self-hosted-in-a-workflow-github-do-4.textA YAML workflow configuration demonstrating how to target specific self-hosted runners using runner groups and labels.Exact payloads, commands, or snippets shown in A YAML workflow configuration demonstrating how to target specific self-hosted runners using runner groups and labels.

What This Skill Covers

    • GitHub Actions / - How-tos / - Manage runners / - Self-hosted runners / - Use in a workflow
  • Main sections: In this article, Viewing available runners for a repository, Using default labels to route jobs, Using custom labels to route jobs, Using groups to route jobs.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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/use-in-a-workflow