mirror of
https://github.com/go-task/task.git
synced 2026-06-15 03:41:37 +00:00
It was always running in the main Taskfile dir, even when the variable was declared in an included taskfile in another directory or when task had a custom dir. Closes #384
12 lines
170 B
YAML
12 lines
170 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
default:
|
|
cmds:
|
|
- echo '{{.FOLDER}}' > dir.txt
|
|
dir: subdirectory
|
|
vars:
|
|
FOLDER:
|
|
sh: basename $(pwd)
|
|
silent: true
|