1
0
mirror of https://github.com/go-task/task.git synced 2025-01-06 03:53:54 +02:00
task/testdata/deferred/Taskfile.yml

13 lines
243 B
YAML
Raw Normal View History

2021-12-15 07:03:37 +02:00
version: "3"
tasks:
task-1:
- echo 'task-1 ran {{.PARAM}}'
2021-12-15 07:03:37 +02:00
task-2:
- defer: { task: "task-1", vars: { PARAM: "successfully" } }
2021-12-15 07:03:37 +02:00
- defer: echo 'echo ran'
- defer: echo 'failing' && exit 2
- echo 'cmd ran'
- exit 1