Hello,
Since we upgraded to task 2.3 we can't call a parent task from included task
parent file :
version: '2'
# Shared send sqs message task
sendMessage:
cmds:
- sqs4task -send {{.TASK}} -body {{.MSG_BODY}}
- command {{if eq .PURGE "yes"}} rm {{.MSG_BODY}} {{end}}
# Sub tasks files
includes:
format: ./tasks/Format.yml
included file (/Format.yml) :
version:'2'
tasks:
run:
cmds:
- task: sendMessage #parent task
vars: {MSG_BODY: "{{.MSG_BODY}}"}
Hi @InsaneRaph,
That's indeed a regression. Thanks for reporting, I'll look into fixing it.
@InsaneRaph This is now possible in master by prefixing the task name with : like this:
version: '2'
tasks:
run:
cmds:
task: :send-message
Hi @andreynering, thanks a lot for the fix