Skip to content

Commit 1750f4a

Browse files
authored
feat(github-workflow): add environment.deployment property (SchemaStore#5478)
Adds support for the `deployment` property on job environment objects. Setting to false lets a job use environment secrets and variables without creating a deployment record. Accepts boolean or expression syntax. Wait timers and required reviewers still apply.
1 parent 9d5005d commit 1750f4a

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/schemas/json/github-workflow.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,19 @@
253253
"$comment": "https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#example-using-environment-name-and-url",
254254
"description": "A deployment URL",
255255
"type": "string"
256+
},
257+
"deployment": {
258+
"$comment": "https://docs.github.com/en/actions/how-tos/deploy/configure-and-manage-deployments/control-deployments#using-environments-without-deployments",
259+
"description": "Whether to create a deployment for this job. Setting to false lets the job use environment secrets and variables without creating a deployment record. Wait timers and required reviewers still apply.",
260+
"oneOf": [
261+
{
262+
"type": "boolean"
263+
},
264+
{
265+
"$ref": "#/definitions/expressionSyntax"
266+
}
267+
],
268+
"default": true
256269
}
257270
},
258271
"required": ["name"],

0 commit comments

Comments
 (0)