1
0
mirror of https://github.com/go-task/task.git synced 2025-01-04 03:48:02 +02:00
task/testdata/deferred/Taskfile.yml
Jacob McCollum 09c9d55695 Changes from PR Review:
- Remove ^task syntax from `defer`
- Support task call syntax in defer
2022-01-02 16:38:06 -05:00

13 lines
243 B
YAML

version: "3"
tasks:
task-1:
- echo 'task-1 ran {{.PARAM}}'
task-2:
- defer: { task: "task-1", vars: { PARAM: "successfully" } }
- defer: echo 'echo ran'
- defer: echo 'failing' && exit 2
- echo 'cmd ran'
- exit 1