Skip to content

Commit 310c3bc

Browse files
authored
Merge pull request github#24044 from github/repo-sync
repo sync
2 parents ec3393f + 6b4ada0 commit 310c3bc

File tree

2 files changed

+8
-24
lines changed

2 files changed

+8
-24
lines changed

content/actions/using-github-hosted-runners/using-larger-runners.md

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ You can add a {% data variables.actions.hosted_runner %} to an organization, whe
9898

9999
## Running jobs on your runner
100100

101-
Once your runner type has been defined, you can update your workflow YAML files to send jobs to your newly created runner instances for processing. You can use runner groups or labels to define where your jobs run.
101+
Once your runner type has been defined, you can update your workflow YAML files to send jobs to your newly created runner instances for processing. You can use runner groups or labels to define where your jobs run.
102+
103+
{% note %}
104+
105+
**Note:** When you add a {% data variables.actions.hosted_runner %}, it is automatically assigned default labels that correspond to the runner name and its operating system. You cannot add custom labels to {% data variables.actions.hosted_runner %}s, but you can use the default labels or the runner's group to send jobs to specific types of runners.
106+
107+
{% endnote %}
102108

103109
Only owner or administrator accounts can see the runner settings. Non-administrative users can contact the organization administrator to find out which runners are enabled. Your organization administrator can create new runners and runner groups, as well as configure permissions to specify which repositories can access a runner group.
104110

@@ -130,28 +136,6 @@ jobs:
130136
131137
{% data reusables.actions.jobs.example-runs-on-labels-and-groups %}
132138
133-
### Using multiple labels
134-
135-
You can specify multiple labels that need to be matched for a job to run on a runner. A runner will need to match all labels to be eligible to run the job.
136-
137-
In this example, a runner will need to match all three of the labels to run the job:
138-
139-
```yaml
140-
name: learn-github-actions
141-
on: [push]
142-
jobs:
143-
check-bats-version:
144-
runs-on:
145-
labels: [ ubuntu-20.04-16core, gpu, qa ]
146-
steps:
147-
- uses: {% data reusables.actions.action-checkout %}
148-
- uses: {% data reusables.actions.action-setup-node %}
149-
with:
150-
node-version: '14'
151-
- run: npm install -g bats
152-
- run: bats -v
153-
```
154-
155139
{% data reusables.actions.section-using-unique-names-for-runner-groups %}
156140
157141
## Managing access to your runners
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
You can choose an operating system and a hardware configuration from the list of available options. When new instances of this runner are deployed through autoscaling, they'll use the same operating system and hardware configuration you've defined here.
22

3-
You can also define the labels that identify the runner, which is how your workflows will be able to send jobs to the runners for processing (using `runs-on`). New runners are automatically assigned to the default group, or you can choose which group the runners must join during the runner creation process. In addition, you can modify the runner's group membership after you've registered the runner. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/controlling-access-to-larger-runners)."
3+
New runners are automatically assigned to the default group, or you can choose which group the runners must join during the runner creation process. In addition, you can modify the runner's group membership after you've registered the runner. For more information, see "[AUTOTITLE](/actions/using-github-hosted-runners/controlling-access-to-larger-runners)."

0 commit comments

Comments
 (0)