1
0
mirror of https://github.com/go-task/task.git synced 2025-07-15 01:35:00 +02:00

fix: handle int and float env variable by converting them to string (#1641)

This commit is contained in:
Valentin Maerten
2024-05-09 16:14:38 +02:00
committed by GitHub
parent 78a69c4c3e
commit 3397f2855f
3 changed files with 23 additions and 7 deletions

View File

@ -14,6 +14,7 @@ tasks:
cmds:
- task: local
- task: global
- task: multiple_type
local:
vars:
@ -31,3 +32,11 @@ tasks:
BAR: overriden
cmds:
- echo "FOO='$FOO' BAR='$BAR' BAZ='$BAZ'" > global.txt
multiple_type:
env:
FOO: 1
BAR: true
BAZ: 1.1
cmds:
- echo "FOO='$FOO' BAR='$BAR' BAZ='$BAZ'" > multiple_type.txt