Commit 0e500835 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '345352-add-updated-workflow-rules-to-json-schema' into 'master'

Add updated workflow rules to json schema

See merge request gitlab-org/gitlab!74164
parents 33ec5295 edd62820
......@@ -63,9 +63,9 @@
"items": {
"type": "object",
"properties": {
"if": {
"type": "string"
},
"if": { "$ref": "#/definitions/if" },
"changes": { "$ref": "#/definitions/changes" },
"exists": { "$ref": "#/definitions/exists" },
"variables": { "$ref": "#/definitions/variables" },
"when": {
"type": "string",
......@@ -497,24 +497,9 @@
"type": "object",
"additionalProperties": false,
"properties": {
"if": {
"type": "string",
"description": "Expression to evaluate whether additional attributes should be provided to the job"
},
"changes": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches a modified file",
"items": {
"type": "string"
}
},
"exists": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches an existing file in the repository",
"items": {
"type": "string"
}
},
"if": { "$ref": "#/definitions/if" },
"changes": { "$ref": "#/definitions/changes" },
"exists": { "$ref": "#/definitions/exists" },
"variables": { "$ref": "#/definitions/variables" },
"when": { "$ref": "#/definitions/when" },
"start_in": { "$ref": "#/definitions/start_in" },
......@@ -541,6 +526,24 @@
]
}
},
"if": {
"type": "string",
"description": "Expression to evaluate whether additional attributes should be provided to the job"
},
"changes": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches a modified file",
"items": {
"type": "string"
}
},
"exists": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches an existing file in the repository",
"items": {
"type": "string"
}
},
"variables": {
"type": "object",
"description": "Defines environment variables for specific jobs. Job level property overrides global variables. If a job sets `variables: {}`, all global variables are turned off.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment