Skip to content

The jobs.*.runs-on documentation is confusing #13272

@sylc

Description

@sylc

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idruns-on

What part(s) of the article would you like to see updated?

The article seems to imply that you can pass an array of string for the github hosted runners.
for example I was trying to do the below

jobs:
  my-job:
    runs-on: [ubuntu-latest, windows-latest]

however this produce the below behaviour
image

It seems that the array of string is only allowed for a self-hosted runner. (not sure why this restriction BTW)

thanks

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamwaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions