more env examples
@@ -38,6 +38,7 @@ TO_UNSET = { unset = true }
PREFER_EXISTING = "original"
OVERWRITE_EXISTING = "original"
ENV_FROM_LIST = ["ARG1", "${SIMPLE}", "simple value: ${SIMPLE} script value: ${SCRIPT}"]
+CONDITIONED_VALUE = { value = "${SIMPLE}", condition = { env_set = ["SIMPLE"] } }
[env.override-test]
PREFER_EXISTING = { value = "new", condition = { env_not_set = ["PREFER_EXISTING"] } }
@@ -82,6 +83,7 @@ script = [
"echo LIBRARY_EXTENSION: ${LIBRARY_EXTENSION}",
"echo PROFILE_ENV_VALUE: ${PROFILE_ENV_VALUE}",
"echo ENV_FROM_LIST: ${ENV_FROM_LIST}",
+ "echo CONDITIONED_VALUE: ${CONDITIONED_VALUE}",
]
[tasks.is_linux]
