Skip to content

Commit 1eb68e2

Browse files
authored
[Bug Fix] Added outputs property to the workflow_call object of GitHub Workflow schema (SchemaStore#4730)
1 parent 75219a8 commit 1eb68e2

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ temp
99
test.json
1010
*.webinfo
1111
.vs/
12+
.vscode/
1213
.idea
1314
*.iml
1415

src/schemas/json/github-workflow.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,33 @@
15671567
},
15681568
"additionalProperties": false
15691569
},
1570+
"outputs": {
1571+
"$comment": "https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onworkflow_calloutputs",
1572+
"description": "When using the workflow_call keyword, you can optionally specify inputs that are passed to the called workflow from the caller workflow.",
1573+
"type": "object",
1574+
"patternProperties": {
1575+
"^[_a-zA-Z][a-zA-Z0-9_-]*$": {
1576+
"$comment": "https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#outputsoutput_id",
1577+
"description": "A string identifier to associate with the output. The value of <output_id> is a map of the output's metadata. The <output_id> must be a unique identifier within the outputs object. The <output_id> must start with a letter or _ and contain only alphanumeric characters, -, or _.",
1578+
"type": "object",
1579+
"properties": {
1580+
"description": {
1581+
"$comment": "https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#outputsoutput_iddescription",
1582+
"description": "A string description of the output parameter.",
1583+
"type": "string"
1584+
},
1585+
"value": {
1586+
"$comment": "https://docs.github.com/en/actions/sharing-automations/creating-actions/metadata-syntax-for-github-actions#outputsoutput_idvalue",
1587+
"description": "The value that the output parameter will be mapped to. You can set this to a string or an expression with context. For example, you can use the steps context to set the value of an output to the output value of a step.",
1588+
"type": "string"
1589+
}
1590+
},
1591+
"required": ["description", "value"],
1592+
"additionalProperties": false
1593+
}
1594+
},
1595+
"additionalProperties": false
1596+
},
15701597
"secrets": {
15711598
"$comment": "https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#onworkflow_callsecrets",
15721599
"description": "A map of the secrets that can be used in the called workflow. Within the called workflow, you can use the secrets context to refer to a secret.",

0 commit comments

Comments
 (0)