Skip to content

Commit

Permalink
docs: update notes to clarify where the environment variables are ava…
Browse files Browse the repository at this point in the history
…ilable (runatlantis#2532)

* update notes to clarify where the environment variables are available

* Update runatlantis.io/docs/custom-workflows.md

Co-authored-by: PePe Amengual <[email protected]>

Co-authored-by: PePe Amengual <[email protected]>
  • Loading branch information
2 people authored and krrrr38 committed Dec 16, 2022
1 parent fb2ff52 commit ac838ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runatlantis.io/docs/custom-workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down Expand Up @@ -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.
:::

0 comments on commit ac838ae

Please sign in to comment.