mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Allow vars in dotenv paths, including environment variables
Closes #453 Closes #434 Ref #433 Co-authored-by: Andrey Nering <andrey@nering.com.br>
This commit is contained in:
committed by
Andrey Nering
parent
cded9af90f
commit
08265ed1d7
1
testdata/dotenv/local_env_in_path/.env.testing
vendored
Normal file
1
testdata/dotenv/local_env_in_path/.env.testing
vendored
Normal file
@@ -0,0 +1 @@
|
||||
VAR_IN_DOTENV=var_in_dot_env_1
|
11
testdata/dotenv/local_env_in_path/Taskfile.yml
vendored
Normal file
11
testdata/dotenv/local_env_in_path/Taskfile.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
version: "3"
|
||||
|
||||
env:
|
||||
LOCAL_ENV: testing
|
||||
|
||||
dotenv: [".env.{{.LOCAL_ENV}}"]
|
||||
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- echo "VAR='$VAR_IN_DOTENV'" > var.txt
|
Reference in New Issue
Block a user