forked from jimmygchen/runner-fallback-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
25 lines (25 loc) · 849 Bytes
/
action.yml
File metadata and controls
25 lines (25 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: 'Check Runner Availability'
description: 'Check for availability of self-hosted GitHub runners and fallback to GitHub-hosted runners if needed'
author: '@jimmygchen'
branding:
icon: activity
color: blue
inputs:
credentials:
description: 'The gcloud credentials'
required: true
github-token:
description: 'GitHub token with repo and actions scope for querying runner information'
required: true
primary-runner:
description: 'Comma-separated list of labels for the primary runner, e.g. self-hosted,linux'
required: true
fallback-runner:
description: 'Name or labels of the fallback runner, e.g. ubuntu-latest'
required: true
weoutputs:
use-runner:
description: 'The runner to use, either the primary or the fallback runner, based on availability'
runs:
using: 'node20'
main: 'dist/index.js'