Skip to content

Commit 66dae1c

Browse files
authored
Merge pull request #13509 from github/ske-clarify-runs-on
clarify `runs-on` array
2 parents da3f500 + 59bc345 commit 66dae1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/actions/learn-github-actions/workflow-syntax-for-github-actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ In this example, `job3` uses the `always()` conditional expression so that it al
475475

476476
## `jobs.<job_id>.runs-on`
477477

478-
**Required**. The type of machine to run the job on. {% ifversion fpt or ghec %}The machine can be either a {% data variables.product.prodname_dotcom %}-hosted runner or a self-hosted runner.{% endif %} You can provide `runs-on` as a single string or as an array of strings.
478+
**Required**. The type of machine to run the job on. {% ifversion fpt or ghec %}The machine can be either a {% data variables.product.prodname_dotcom %}-hosted runner or a self-hosted runner.{% endif %} You can provide `runs-on` as a single string or as an array of strings. If you specify an array of strings, your workflow will run on a self-hosted runner whose labels match all of the specified `runs-on` values, if available. If you would like to run your workflow on multiple machines, use [`jobs.<job_id>.strategy`](/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategy).
479479

480480
{% ifversion fpt or ghec or ghes %}
481481
{% data reusables.actions.enterprise-github-hosted-runners %}

0 commit comments

Comments
 (0)