# Revision history [back]

I don't think there is a way to link a pre-existing environment. You could, however, have a task in the workflow that fetches the environment. This workflow takes the name of a environment, it then fetches it and outputs the contents of the environment.

wf:
input:
- env_name
action: mistral.environments_get name=<% $.env_name %> publish: env: task(get_env).result.variables on-complete: do_something do_something: action: std.echo output=<%$env %>

wf:
action: mistral.environments_get name=<% $.env_name %> publish: env: task(get_env).result.variables on-complete: do_something do_something: action: std.echo output=<%$env \$.env %>