2019-10-10 00:52:42 -04:00
|
|
|
{
|
|
|
|
|
"definitions": {
|
|
|
|
|
"action-root": {
|
|
|
|
|
"description": "Action file",
|
|
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"name": "string",
|
|
|
|
|
"description": "string",
|
|
|
|
|
"inputs": "inputs",
|
2020-07-13 17:23:19 -04:00
|
|
|
"runs": "runs",
|
|
|
|
|
"outputs": "outputs"
|
2019-10-10 00:52:42 -04:00
|
|
|
},
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
|
|
|
|
"loose-value-type": "any"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"inputs": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
|
|
|
|
"loose-value-type": "input"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"input": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"default": "input-default-context"
|
|
|
|
|
},
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
|
|
|
|
"loose-value-type": "any"
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-07-13 17:23:19 -04:00
|
|
|
"outputs": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
2021-04-30 15:48:53 -05:00
|
|
|
"loose-value-type": "output-definition"
|
2020-07-13 17:23:19 -04:00
|
|
|
}
|
|
|
|
|
},
|
2021-04-30 15:48:53 -05:00
|
|
|
"output-definition": {
|
2020-07-13 17:23:19 -04:00
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"description": "string",
|
|
|
|
|
"value": "output-value"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-10-10 00:52:42 -04:00
|
|
|
"runs": {
|
|
|
|
|
"one-of": [
|
|
|
|
|
"container-runs",
|
2021-11-18 15:25:33 -05:00
|
|
|
"node-runs",
|
2020-06-23 15:35:32 -04:00
|
|
|
"plugin-runs",
|
|
|
|
|
"composite-runs"
|
2019-10-10 00:52:42 -04:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"container-runs": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"using": "non-empty-string",
|
|
|
|
|
"image": "non-empty-string",
|
|
|
|
|
"entrypoint": "non-empty-string",
|
|
|
|
|
"args": "container-runs-args",
|
|
|
|
|
"env": "container-runs-env",
|
2020-04-13 21:46:30 -04:00
|
|
|
"pre-entrypoint": "non-empty-string",
|
|
|
|
|
"pre-if": "non-empty-string",
|
2019-10-10 00:52:42 -04:00
|
|
|
"post-entrypoint": "non-empty-string",
|
|
|
|
|
"post-if": "non-empty-string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"container-runs-args": {
|
|
|
|
|
"sequence": {
|
|
|
|
|
"item-type": "container-runs-context"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"container-runs-env": {
|
|
|
|
|
"context": [
|
|
|
|
|
"inputs"
|
|
|
|
|
],
|
|
|
|
|
"mapping": {
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
|
|
|
|
"loose-value-type": "string"
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-11-18 15:25:33 -05:00
|
|
|
"node-runs": {
|
2019-10-10 00:52:42 -04:00
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"using": "non-empty-string",
|
|
|
|
|
"main": "non-empty-string",
|
2020-04-13 21:46:30 -04:00
|
|
|
"pre": "non-empty-string",
|
|
|
|
|
"pre-if": "non-empty-string",
|
2019-10-10 00:52:42 -04:00
|
|
|
"post": "non-empty-string",
|
|
|
|
|
"post-if": "non-empty-string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"plugin-runs": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"plugin": "non-empty-string"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2020-06-23 15:35:32 -04:00
|
|
|
"composite-runs": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"using": "non-empty-string",
|
|
|
|
|
"steps": "composite-steps"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"composite-steps": {
|
|
|
|
|
"sequence": {
|
2020-07-28 10:15:46 -04:00
|
|
|
"item-type": "composite-step"
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-11-18 15:25:33 -05:00
|
|
|
"composite-step": {
|
2021-07-01 13:34:28 -04:00
|
|
|
"one-of": [
|
|
|
|
|
"run-step",
|
2021-11-18 15:25:33 -05:00
|
|
|
"uses-step"
|
2021-07-01 13:34:28 -04:00
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"run-step": {
|
2020-07-28 10:15:46 -04:00
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"name": "string-steps-context",
|
|
|
|
|
"id": "non-empty-string",
|
2021-10-29 15:45:42 +02:00
|
|
|
"if": "step-if",
|
2020-07-28 10:15:46 -04:00
|
|
|
"run": {
|
|
|
|
|
"type": "string-steps-context",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
|
|
|
|
"env": "step-env",
|
2022-04-01 15:18:53 +02:00
|
|
|
"continue-on-error": "boolean-steps-context",
|
2020-07-28 10:15:46 -04:00
|
|
|
"working-directory": "string-steps-context",
|
|
|
|
|
"shell": {
|
|
|
|
|
"type": "non-empty-string",
|
|
|
|
|
"required": true
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-06-23 15:35:32 -04:00
|
|
|
}
|
|
|
|
|
},
|
2021-07-01 13:34:28 -04:00
|
|
|
"uses-step": {
|
|
|
|
|
"mapping": {
|
|
|
|
|
"properties": {
|
|
|
|
|
"name": "string-steps-context",
|
|
|
|
|
"id": "non-empty-string",
|
2021-10-29 15:45:42 +02:00
|
|
|
"if": "step-if",
|
2021-07-01 13:34:28 -04:00
|
|
|
"uses": {
|
|
|
|
|
"type": "non-empty-string",
|
|
|
|
|
"required": true
|
|
|
|
|
},
|
2022-04-01 15:18:53 +02:00
|
|
|
"continue-on-error": "boolean-steps-context",
|
2021-07-01 13:34:28 -04:00
|
|
|
"with": "step-with",
|
|
|
|
|
"env": "step-env"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-10-10 00:52:42 -04:00
|
|
|
"container-runs-context": {
|
|
|
|
|
"context": [
|
|
|
|
|
"inputs"
|
|
|
|
|
],
|
|
|
|
|
"string": {}
|
|
|
|
|
},
|
2020-07-13 17:23:19 -04:00
|
|
|
"output-value": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"steps",
|
|
|
|
|
"inputs",
|
|
|
|
|
"job",
|
|
|
|
|
"runner",
|
|
|
|
|
"env"
|
|
|
|
|
],
|
|
|
|
|
"string": {}
|
|
|
|
|
},
|
2019-10-10 00:52:42 -04:00
|
|
|
"input-default-context": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"job",
|
2020-03-18 12:08:51 -04:00
|
|
|
"runner",
|
|
|
|
|
"hashFiles(1,255)"
|
2019-10-10 00:52:42 -04:00
|
|
|
],
|
|
|
|
|
"string": {}
|
|
|
|
|
},
|
|
|
|
|
"non-empty-string": {
|
|
|
|
|
"string": {
|
|
|
|
|
"require-non-empty": true
|
|
|
|
|
}
|
2020-07-28 10:15:46 -04:00
|
|
|
},
|
|
|
|
|
"string-steps-context": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"inputs",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"steps",
|
|
|
|
|
"job",
|
|
|
|
|
"runner",
|
|
|
|
|
"env",
|
|
|
|
|
"hashFiles(1,255)"
|
|
|
|
|
],
|
|
|
|
|
"string": {}
|
|
|
|
|
},
|
2022-04-01 15:18:53 +02:00
|
|
|
"boolean-steps-context": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"inputs",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"steps",
|
|
|
|
|
"job",
|
|
|
|
|
"runner",
|
|
|
|
|
"env",
|
|
|
|
|
"hashFiles(1,255)"
|
|
|
|
|
],
|
|
|
|
|
"boolean": {}
|
|
|
|
|
},
|
2020-07-28 10:15:46 -04:00
|
|
|
"step-env": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"inputs",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"steps",
|
|
|
|
|
"job",
|
|
|
|
|
"runner",
|
|
|
|
|
"env",
|
|
|
|
|
"hashFiles(1,255)"
|
|
|
|
|
],
|
|
|
|
|
"mapping": {
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
|
|
|
|
"loose-value-type": "string"
|
|
|
|
|
}
|
2021-07-01 13:34:28 -04:00
|
|
|
},
|
2021-10-29 15:45:42 +02:00
|
|
|
"step-if": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"inputs",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"steps",
|
|
|
|
|
"job",
|
|
|
|
|
"runner",
|
|
|
|
|
"env",
|
|
|
|
|
"always(0,0)",
|
|
|
|
|
"failure(0,0)",
|
|
|
|
|
"cancelled(0,0)",
|
|
|
|
|
"success(0,0)",
|
|
|
|
|
"hashFiles(1,255)"
|
|
|
|
|
],
|
|
|
|
|
"string": {}
|
|
|
|
|
},
|
2021-07-01 13:34:28 -04:00
|
|
|
"step-with": {
|
|
|
|
|
"context": [
|
|
|
|
|
"github",
|
|
|
|
|
"inputs",
|
|
|
|
|
"strategy",
|
|
|
|
|
"matrix",
|
|
|
|
|
"steps",
|
|
|
|
|
"job",
|
|
|
|
|
"runner",
|
|
|
|
|
"env",
|
|
|
|
|
"hashFiles(1,255)"
|
|
|
|
|
],
|
|
|
|
|
"mapping": {
|
|
|
|
|
"loose-key-type": "non-empty-string",
|
|
|
|
|
"loose-value-type": "string"
|
|
|
|
|
}
|
2019-10-10 00:52:42 -04:00
|
|
|
}
|
|
|
|
|
}
|
2021-11-18 15:25:33 -05:00
|
|
|
}
|