Skip to content

Merge Environment Variables

Merges a list of environment variables with the existing environment.

Merges a list of new or updated environment variables with the existing ones from the execution context.

Each variable must be a string in the KEY=VALUE format. If a variable with the same KEY already exists in the context, its VALUE will be updated.

Example#

If the existing environment contains HOST=localhost, and you provide the input: - API_KEY=secret123 - HOST=prod.server.com

The output will be a list containing all environment variables, with API_key added and HOST updated to prod.server.com.

The VALUE part of each variable supports the Expression Syntax.

Inputs#

Port Description
Additional Env Vars
A list of environment variables in KEY=VALUE format. The value supports the Expression Syntax.

Outputs#

Port Description
Env Vars
The complete, merged list of environment variables.

ID: core/env-array@v1