Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.09 KB

self_hosted_runners.md

File metadata and controls

35 lines (22 loc) · 1.09 KB

Repo / Actions / Self Hosted Runners API

Back to the "Repos API" | Back to the navigation

List self-hosted runners for a repository

https://docs.github.com/en/rest/reference/actions#list-self-hosted-runners-for-a-repository

$runners = $client->api('repo')->selfHostedRunners()->all('KnpLabs', 'php-github-api');

Get a self-hosted runner for a repository

https://docs.github.com/en/rest/reference/actions#get-a-self-hosted-runner-for-a-repository

$runner = $client->api('repo')->selfHostedRunners()->show('KnpLabs', 'php-github-api', $runnerId);

Delete a self-hosted runner from a repository

https://docs.github.com/en/rest/reference/actions#delete-a-self-hosted-runner-from-a-repository

$client->api('repo')->selfHostedRunners()->remove('KnpLabs', 'php-github-api', $runnerId);

List runner applications for a repository

https://docs.github.com/en/rest/reference/actions#list-runner-applications-for-a-repository

$applications = $client->api('repo')->selfHostedRunners()->applications('KnpLabs', 'php-github-api');