{"repo":"mikehardy/runner-fallback-action","free":true,"listed":false,"github":"https://github.com/mikehardy/runner-fallback-action","clone":"git clone https://github.com/mikehardy/runner-fallback-action.git","description":"Github action to determine the availability of self-hosted runners","language":"JavaScript","stars":13,"topics":[],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"Github Runner Fallback Action Github action to determine the availability of self-hosted runners, and fallback to a GitHub runner if the primary runners are offline. This action uses GitHub API to check the statuses of self hosted-runners that match specific labels, and outputs the runner label(s), or a fallback runner if the self-hosted runner(s) is unavailable. The API used requires an access token with org admin rights, for example a classic Personal Access Token with org:admin scope selected. This output can then used on the runs-on property of subsequent jobs. Note: In order to support an array of labels for the runs-on field, the output is formatted as a JSON string and needs to be parsed using fromJson . See example usage below. Usage ✏️ Inputs Required Name Description ----------------- ---------------------------------------------------------------------------------------------------------- github-token A token that can access the list action runners for the given context (e.g. user repo, org, enterprise). primary-runner A comma separated list of labels for the primary runner (e.g. 'self-hosted,linux'). fallback-runner A comma separated list of labels for the fallback runner (e.g. 'self-hosted,linux'). Optional --- There are three ways runners can be allowed to run against a repo: User, Organization, Enterprise. The following options allow you to switch the implementation to use one of the other specified levels. Note: You can only provide one of the values. Name Des","default_branch":null,"files":null,"tree":[],"storefront":"/r/mikehardy","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mikehardy/runner-fallback-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}