-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
feat(runs_on): permit using array of string to select specific runner #1740
Merged
suzuki-shunsuke
merged 6 commits into
suzuki-shunsuke:main
from
NikitaCOEUR:feat/array_for_runs-on
Jul 19, 2024
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
891baef
feat(runs_on): permit using array of string to select specific githug…
NikitaCOEUR e21e74f
docs(schema): add runs_on to schema
NikitaCOEUR 560de74
fix(runs_on): ensure runs_on can be optional as before
NikitaCOEUR a0f260e
fix: replace github.action_path with GITHUB_ACTION_PATH
suzuki-shunsuke deb247e
chore: update terraform-fmt and terraform-init actions
suzuki-shunsuke 7290811
fix: update JSON Schema of tfaction-root.yaml to use anyOf for runs_on
suzuki-shunsuke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs(schema): add runs_on to schema
- Loading branch information
commit e21e74f655dfe75ea5c1169941717d21b2ffb49b
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not familiar with JSON Schema, so I'm not sure if this is correct.
I'll look into.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://cswr.github.io/JsonSchema/spec/multiple_types/
It seems correct, no ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝
type
can accept an array.https://json-schema.org/draft/2020-12/json-schema-core
But I think
array
is ambiguous because the type of elements is unknown. 🤔There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this is better :
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://json-schema.org/understanding-json-schema/reference/combining#anyOf
Should we use
anyOf
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reading more, Anyof seems more appropriate. It's more like a OR and not a XOR. So yes definitely.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But null type is necessary because we can let empty the property no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
runs_on
is not set, the type definition is unrelated. So I don't think we need to addnull
.If we want to support the setting which sets
null
explictly, we need to addnull
.But I don't think we need to support
null
explicitly.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. 7290811