From 770f9247cf2e03d388610fdc3b0f7ef82ddf8bd6 Mon Sep 17 00:00:00 2001 From: Eric Cabrel TIOGO Date: Sat, 3 Aug 2024 15:32:04 +0200 Subject: [PATCH] fix: tf var --- .github/workflows/infra-plan.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/infra-plan.yml b/.github/workflows/infra-plan.yml index 9544da1..183f193 100644 --- a/.github/workflows/infra-plan.yml +++ b/.github/workflows/infra-plan.yml @@ -11,7 +11,7 @@ on: env: TF_API_TOKEN: "${{ secrets.TERRAFORM_API_TOKEN }}" TF_CLOUD_ORGANIZATION: ${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }} - TF_VAR_organization: ${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }} + TF_VAR_organization: "${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }}" TF_WORKSPACE: 'snipcode-backend-compute-prod' jobs: @@ -28,10 +28,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Terraform - uses: hashicorp/setup-terraform@v2 + uses: hashicorp/setup-terraform@v3 with: terraform_version: 1.3.0 # Specify your Terraform version @@ -46,6 +46,8 @@ jobs: - name: Create Plan Run uses: hashicorp/tfc-workflows-github/actions/create-run@v1.0.0 id: plan-run + env: + TF_VAR_organization: "${{ secrets.TERRAFORM_CLOUD_ORGANIZATION }}" with: workspace: ${{ env.TF_WORKSPACE }} configuration_version: ${{ steps.plan-upload.outputs.configuration_version_id }}