/
workflow-job.schema.json
79 lines (79 loc) · 2.74 KB
/
workflow-job.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "common/workflow-job.schema.json",
"required": [
"id",
"run_id",
"run_url",
"run_attempt",
"node_id",
"head_sha",
"url",
"html_url",
"status",
"conclusion",
"started_at",
"completed_at",
"name",
"steps",
"check_run_url",
"labels",
"runner_id",
"runner_name",
"runner_group_id",
"runner_group_name"
],
"description": "The workflow job. Many `workflow_job` keys, such as `head_sha`, `conclusion`, and `started_at` are the same as those in a [`check_run`](#check_run) object.",
"type": "object",
"properties": {
"id": { "type": "integer" },
"run_id": { "type": "number" },
"run_attempt": { "type": "integer" },
"run_url": { "type": "string", "format": "uri" },
"head_sha": { "type": "string" },
"node_id": { "type": "string" },
"name": { "type": "string" },
"check_run_url": { "type": "string", "format": "uri" },
"html_url": { "type": "string", "format": "uri" },
"url": { "type": "string", "format": "uri" },
"status": {
"type": "string",
"enum": ["queued", "in_progress", "completed"],
"description": "The current status of the job. Can be `queued`, `in_progress`, or `completed`."
},
"steps": {
"type": "array",
"items": { "$ref": "workflow-step.schema.json" },
"minItems": 1
},
"conclusion": {
"type": ["string", "null"],
"enum": ["success", "failure", null]
},
"labels": {
"type": "array",
"items": { "type": "string" },
"description": "Custom labels for the job. Specified by the [`\"runs-on\"` attribute](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) in the workflow YAML."
},
"runner_id": {
"type": ["integer", "null"],
"description": "The ID of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"runner_name": {
"type": ["string", "null"],
"description": "The name of the runner that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"runner_group_id": {
"type": ["integer", "null"],
"description": "The ID of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"runner_group_name": {
"type": ["string", "null"],
"description": "The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"started_at": { "type": "string" },
"completed_at": { "type": ["string", "null"] }
},
"additionalProperties": false,
"title": "Workflow Job"
}