-
Notifications
You must be signed in to change notification settings - Fork 6
/
pipeline.schema.json
58 lines (58 loc) · 2.43 KB
/
pipeline.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema",
"description": "Schema for building flows for DataTorch.",
"properties": {
"name": {
"description": "Name of the workflow. Must be unique for a give project.",
"type": "string"
},
"jobs": {
"description": "A workflow run is made up of one or more jobs. Jobs run in parallel by default.",
"type": "object",
"patternProperties": {
"^[_a-zA-Z][a-zA-Z0-9_-]*$": {
"description": "Each job must have an id to associate with the job. The key job_id is a string and its value is a map of the job's configuration data.",
"type": "object",
"properties": {
"name": {
"description": "The name of the job displayed on DataTorch.",
"type": "string"
},
"steps": {
"description": "A job contains a sequence of tasks called steps.",
"type": "array",
"items": {
"type": "object",
"properties": {
"if": {
"description": "You can use the if conditional to prevent a step from running unless a condition is met.",
"type": "string"
},
"name": {
"description": "A name for your step to display on GitHub.",
"type": "string"
},
"action": {
"description": "Selects an action to run as part of a step in your job. An action is a reusable unit of code. You can use an action defined in the same repository as the workflow, a public repository, or in a published Docker container image (https://hub.docker.com/).\nWe strongly recommend that you include the version of the action you are using by specifying a Git ref, SHA, or Docker tag number.",
"type": "string"
},
"timeout": {
"description": "The maximum number of minutes to run the step before killing the process.",
"type": "number"
},
"additionalProperties": false
},
"additionalItems": false,
"minItems": 1
}
}
}
}
},
"minProperties": 1,
"additionalProperties": false
}
},
"required": ["name", "jobs"],
"additionalProperties": false
}