-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
runs-on is too strict in workflow files #2579
Comments
The schema enforce the recommendation What's wrong here is that the present schema lacks support for
Or list of labels
|
Echoing @RJWadley - It seems like this should be valid: jobs:
e2e-tests:
name: "Run e2e performance regression tests"
runs-on: ubuntu-20.04-64core
|
By the way, if you want a no-maintenance method to achieve that, you can use cirun.io for the same. |
Area with issue?
JSON Schema
✔️ Expected Behavior
runs-on should accept any valid label, or any valid list of labels without requiring the 'self-hosted' label
❌ Actual Behavior
Thanks to GitHubs new larger runners feature, github-hosted runners can now be given any custom label.
When using this custom label to refer in
runs-on
in a workflow syntax the schema insists I add "self-hosted" to the list of labels. This, while correct in the past, would no longer address the correct runner. As far as I can tell, there currently is no way to address a specific larger runner within the bounds of the schema.Documentation for this is available here: https://docs.github.com/en/actions/using-github-hosted-runners/using-larger-runners#using-labels-to-control-where-jobs-are-run
YAML or JSON file that does not work.
IDE or code editor.
No response
Are you making a PR for this?
No, someone else must create the PR.
The text was updated successfully, but these errors were encountered: