mirror of
https://github.com/go-task/task.git
synced 2026-09-02 04:02:08 +02:00
fix: support .MATCH in wildcard include vars
This commit is contained in:
7
testdata/includes_wildcard_vars/Taskfile.yml
vendored
Normal file
7
testdata/includes_wildcard_vars/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
version: "3"
|
||||
|
||||
includes:
|
||||
'stack:*':
|
||||
taskfile: ./stack/Taskfile.yml
|
||||
vars:
|
||||
ENV: '{{index .MATCH 0}}'
|
||||
6
testdata/includes_wildcard_vars/stack/Taskfile.yml
vendored
Normal file
6
testdata/includes_wildcard_vars/stack/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
version: "3"
|
||||
|
||||
tasks:
|
||||
deploy:
|
||||
cmds:
|
||||
- echo "Deploying to {{.ENV}}"
|
||||
Reference in New Issue
Block a user