diff --git a/CHANGELOG.md b/CHANGELOG.md index 405a6a2839..e5d6e846f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ the [Map Variables experiment](https://taskfile.dev/experiments/map-variables/) is enabled (#1612 by @pd93). +- Added support for environment variables in the templating engine in `includes` + (#1610 by @vmaerten). ## v3.36.0 - 2024-04-08 diff --git a/website/docs/experiments/remote_taskfiles.mdx b/website/docs/experiments/remote_taskfiles.mdx index ba2e825bf0..a1259b7621 100644 --- a/website/docs/experiments/remote_taskfiles.mdx +++ b/website/docs/experiments/remote_taskfiles.mdx @@ -48,7 +48,9 @@ tasks: and you run `task my-remote-namespace:hello`, it will print the text: "Hello from the remote Taskfile!" to your console. -URL is processed by the templating system, so you can reference environment variable in your URL to have authentication, for example : +The Taskfile location is processed by the templating system, so you can +reference environment variables in your URL if you need to add authentication. +For example: ```yaml version: '3' @@ -57,7 +59,8 @@ includes: my-remote-namespace: https://{{.TOKEN}}@raw.githubusercontent.com/my-org/my-repo/main/Taskfile.yml ``` -`TOKEN=my-token task my-remote-namespace:hello` will be resolved by Task to `https://my-token@raw.githubusercontent.com/my-org/my-repo/main/Taskfile.yml` +`TOKEN=my-token task my-remote-namespace:hello` will be resolved by Task to +`https://my-token@raw.githubusercontent.com/my-org/my-repo/main/Taskfile.yml` ## Security