From ac838ae34a6d368605b59da95ad3cb2452a7cc68 Mon Sep 17 00:00:00 2001 From: gurpalw <37112979+gurpalw@users.noreply.github.com> Date: Thu, 27 Oct 2022 17:43:44 +0100 Subject: [PATCH] docs: update notes to clarify where the environment variables are available (#2532) * update notes to clarify where the environment variables are available * Update runatlantis.io/docs/custom-workflows.md Co-authored-by: PePe Amengual Co-authored-by: PePe Amengual --- runatlantis.io/docs/custom-workflows.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runatlantis.io/docs/custom-workflows.md b/runatlantis.io/docs/custom-workflows.md index ae6cb49dec..b118816774 100644 --- a/runatlantis.io/docs/custom-workflows.md +++ b/runatlantis.io/docs/custom-workflows.md @@ -420,7 +420,8 @@ Or a custom command | run | string | none | no | Run a custom command | ::: tip Notes -* `run` steps are executed with the following environment variables: +* `run` steps in the main `workflow` are executed with the following environment variables: +* note: these variables are not available to `pre` or `post` workflows * `WORKSPACE` - The Terraform workspace used for this project, ex. `default`. * NOTE: if the step is executed before `init` then Atlantis won't have switched to this workspace yet. * `ATLANTIS_TERRAFORM_VERSION` - The version of Terraform used for this project, ex. `0.11.0`. @@ -497,4 +498,3 @@ The name-value pairs in the result are added as environment variables if success * `multienv` `command`'s can use any of the built-in environment variables available to `run` commands. ::: -