-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathaction_stringdata.go
More file actions
83 lines (81 loc) · 2.97 KB
/
Copy pathaction_stringdata.go
File metadata and controls
83 lines (81 loc) · 2.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Code generated by stringdata. DO NOT EDIT.
package schema
// ActionSchemaJSON is the content of the file "actions.schema.json".
const ActionSchemaJSON = `{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "actions.schema.json#",
"title": "Action Definition",
"description": "Describes an action with its scope and steps to perform.",
"allowComments": true,
"type": "object",
"additionalProperties": false,
"required": [
"scopeQuery",
"steps"
],
"properties": {
"$schema": {
"description": "URL of the JSON Schema for an Action Definition.",
"type": "string",
"minLength": 1
},
"scopeQuery": {
"description": "A Sourcegraph search query to generate a list of repositories over which to run the action. Use 'src actions scope-query' to see which repositories are matched by the query.",
"type": "string",
"minLength": 1
},
"steps": {
"description": "A list of action steps to execute in each repository.",
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["type"],
"additionalProperties": false,
"properties": {
"type": {
"description": "Can be either \"command\", which executes the step in the native environment (OS) of the machine where 'src actions exec' is executed, or \"docker\" which runs a container with the repository contents mounted in at ` + "`" + `/work` + "`" + `. Note that local images (not from a Docker registry) must be built manually prior to executing.",
"type": "string",
"enum": ["command", "docker"]
},
"args": {
"description": "The command and its argument to execute if \"type\" is \"command\", or a list of arguments to be passed to the Docker container if \"type\" is \"docker\".",
"type": "array",
"minItems": 1,
"items": {
"type": "string"
}
},
"image": {
"description": "The Docker image handle for running the container executing this step. Just like when running ` + "`" + `docker run` + "`" + `, ` + "`" + `args` + "`" + ` here override the default ` + "`" + `CMD` + "`" + ` to be executed.",
"type": "string",
"minLength": 1
},
"cacheDirs": {
"description": "Names of directories to create in a temporary location and mount into each \"docker\" step container under the specified name.",
"type": "array",
"items": {
"type": "string"
}
}
},
"oneOf": [
{
"required": ["args"],
"properties": {
"type": { "const": "command" },
"image": { "type": "null" }
}
},
{
"required": ["image"],
"properties": {
"type": { "const": "docker" }
}
}
]
}
}
}
}
`