How do self-hosted runners register and receive jobs?
IntermediateConceptGitHub Actions
Answer
You download the runner application, run ./config.sh --url https://github.com/org/repo --token <registration-token> --labels gpu,linux --ephemeral, then ./run.sh or install it as a service. The runner opens an outbound HTTPS long-poll to GitHub and picks up jobs whose runs-on labels match; no inbound ports are needed. --ephemeral makes it take exactly one job then unregister, the recommended mode for security.
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate