Closed christopher-besch closed 2 weeks ago
This is outside the scope of a runner itself. In the real world I would push to use something like a controller to manage this. The runners job is simply to come up and be available, not manage the existence of outside resources such as groups.
In addition this requires an enterprise level plan to manage groups so it's untestable on my side.
Add the
CREATE_RUNNER_GROUP
environment variable.Instead of creating runner groups manually via the web interface, this variable creates them automatically on runner startup.
See: https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2022-11-28#create-a-self-hosted-runner-group-for-an-organization