Skip to content

Commit 6fe1558

Browse files
authored
github-workflow: trigger types can be an array or a scalar string (#4637)
Signed-off-by: William Woodruff <[email protected]>
1 parent a0e6765 commit 6fe1558

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/schemas/json/github-workflow.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,15 @@
491491
"types": {
492492
"$comment": "https://help.github.com/en/github/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onevent_nametypes",
493493
"description": "Selects the types of activity that will trigger a workflow run. Most GitHub events are triggered by more than one type of activity. For example, the event for the release resource is triggered when a release is published, unpublished, created, edited, deleted, or prereleased. The types keyword enables you to narrow down activity that causes the workflow to run. When only one activity type triggers a webhook event, the types keyword is unnecessary.\nYou can use an array of event types. For more information about each event and their activity types, see https://help.github.com/en/articles/events-that-trigger-workflows#webhook-events.",
494-
"type": "array",
495-
"minItems": 1
494+
"oneOf": [
495+
{
496+
"type": "array",
497+
"minItems": 1
498+
},
499+
{
500+
"type": "string"
501+
}
502+
]
496503
},
497504
"working-directory": {
498505
"$comment": "https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsrun",

0 commit comments

Comments
 (0)