Skip to content

Commit 3f77633

Browse files
[vendor-schemas] automated update (#194)
Co-authored-by: sirosen <[email protected]>
1 parent 90dda14 commit 3f77633

File tree

3 files changed

+48
-22
lines changed

3 files changed

+48
-22
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unreleased
1010

1111
.. vendor-insert-here
1212
13-
- Update vendored schemas (2022-11-30)
13+
- Update vendored schemas (2022-12-03)
1414

1515
0.19.2
1616
------

src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.json

Lines changed: 46 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
"before_script": {
4242
"$ref": "#/definitions/before_script"
4343
},
44+
"hooks": {
45+
"$ref": "#/definitions/hooks"
46+
},
4447
"cache": {
4548
"$ref": "#/definitions/cache"
4649
},
@@ -202,25 +205,11 @@
202205
"when": {
203206
"markdownDescription": "Configure when artifacts are uploaded depended on job status. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifactswhen).",
204207
"default": "on_success",
205-
"oneOf": [
206-
{
207-
"enum": [
208-
"on_success"
209-
],
210-
"description": "Upload artifacts only when the job succeeds (this is the default)."
211-
},
212-
{
213-
"enum": [
214-
"on_failure"
215-
],
216-
"description": "Upload artifacts only when the job fails."
217-
},
218-
{
219-
"enum": [
220-
"always"
221-
],
222-
"description": "Upload artifacts regardless of job status."
223-
}
208+
"type": "string",
209+
"enum": [
210+
"on_success",
211+
"on_failure",
212+
"always"
224213
]
225214
},
226215
"expire_in": {
@@ -989,6 +978,7 @@
989978
"default": false
990979
},
991980
"when": {
981+
"type": "string",
992982
"markdownDescription": "Defines when to save the cache, based on the status of the job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachewhen).",
993983
"default": "on_success",
994984
"enum": [
@@ -1230,6 +1220,9 @@
12301220
"after_script": {
12311221
"$ref": "#/definitions/after_script"
12321222
},
1223+
"hooks": {
1224+
"$ref": "#/definitions/hooks"
1225+
},
12331226
"rules": {
12341227
"$ref": "#/definitions/rules"
12351228
},
@@ -1894,6 +1887,39 @@
18941887
}
18951888
]
18961889
}
1890+
},
1891+
"hooks": {
1892+
"type": "object",
1893+
"markdownDescription": "Specifies lists of commands to execute on the runner at certain stages of job execution. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#hooks).",
1894+
"properties": {
1895+
"pre_get_sources_script": {
1896+
"markdownDescription": "Specifies a list of commands to execute on the runner before updating the Git repository and any submodules. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#hookspre_get_sources_script).",
1897+
"oneOf": [
1898+
{
1899+
"type": "string",
1900+
"minLength": 1
1901+
},
1902+
{
1903+
"type": "array",
1904+
"items": {
1905+
"anyOf": [
1906+
{
1907+
"type": "string"
1908+
},
1909+
{
1910+
"type": "array",
1911+
"items": {
1912+
"type": "string"
1913+
}
1914+
}
1915+
]
1916+
},
1917+
"minItems": 1
1918+
}
1919+
]
1920+
}
1921+
},
1922+
"additionalProperties": false
18971923
}
18981924
}
1899-
}
1925+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cbbcd56d1643a48926299a46a0eefd74d70396bfc9da1dcd36e0611c72687ef8
1+
d8a6e9019aef342f6581a3ed1743ff374c347aa330d13028806282d142d5f3dc

0 commit comments

Comments
 (0)