diff --git a/.github/workflows/terraform-terragrunt.yml b/.github/workflows/terraform-terragrunt.yml index 2461f5a..3e57cb3 100644 --- a/.github/workflows/terraform-terragrunt.yml +++ b/.github/workflows/terraform-terragrunt.yml @@ -25,14 +25,15 @@ jobs: if [[ "$BRANCH_NAME" == "main" ]]; then echo "TF_WORKSPACE=prod-project" >> $GITHUB_ENV echo "TG_WORKDIR=./environment/prod" >> $GITHUB_ENV - elif [[ "$BRANCH_NAME" == "stage-project" ]]; then + elif [[ "$BRANCH_NAME" == "stage" ]]; then echo "TF_WORKSPACE=stage" >> $GITHUB_ENV - echo "TG_WORKDIR=./environment/prod" >> $GITHUB_ENV - elif [[ "$BRANCH_NAME" == "dev-project" ]]; then + echo "TG_WORKDIR=./environment/stage" >> $GITHUB_ENV + elif [[ "$BRANCH_NAME" == "dev" ]]; then echo "TF_WORKSPACE=dev" >> $GITHUB_ENV echo "TG_WORKDIR=./environment/dev" >> $GITHUB_ENV else echo "TF_WORKSPACE=default" >> $GITHUB_ENV + echo "TG_WORKDIR=./environment/default" >> $GITHUB_ENV fi - name: Set up Terraform CLI