mirror of
https://github.com/go-task/task.git
synced 2025-04-17 12:06:30 +02:00
parent
0cddd8c167
commit
c42bc6914e
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
- Fix a missing a line break on log when using `--watch` mode (#1285, #1297 by
|
- Fix a missing a line break on log when using `--watch` mode (#1285, #1297 by
|
||||||
@FilipSolich).
|
@FilipSolich).
|
||||||
|
- Fix `defer` on JSON Schema (#1288 by @calvinmclean and @andreynering).
|
||||||
|
|
||||||
## v3.28.0 - 2023-07-24
|
## v3.28.0 - 2023-07-24
|
||||||
|
|
||||||
|
30
docs/static/schema.json
vendored
30
docs/static/schema.json
vendored
@ -208,6 +208,9 @@
|
|||||||
{
|
{
|
||||||
"$ref": "#/definitions/3/task_call"
|
"$ref": "#/definitions/3/task_call"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/3/defer_call"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/3/for_call"
|
"$ref": "#/definitions/3/for_call"
|
||||||
}
|
}
|
||||||
@ -308,10 +311,6 @@
|
|||||||
"description": "Prevent command from aborting the execution of task even after receiving a status code of 1",
|
"description": "Prevent command from aborting the execution of task even after receiving a status code of 1",
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
"defer": {
|
|
||||||
"description": "",
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"platforms": {
|
"platforms": {
|
||||||
"description": "Specifies which platforms the command should be run on.",
|
"description": "Specifies which platforms the command should be run on.",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
@ -323,6 +322,29 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["cmd"]
|
"required": ["cmd"]
|
||||||
},
|
},
|
||||||
|
"defer_call": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"defer": {
|
||||||
|
"description": "Run a command when the task completes. This command will run even when the task fails",
|
||||||
|
"anyOf": [
|
||||||
|
"string",
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"task": {
|
||||||
|
"description": "Name of the task to defer",
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"required": ["defer"]
|
||||||
|
},
|
||||||
"for_call": {
|
"for_call": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user