Skip to content

Commit

Permalink
fix: tf var
Browse files Browse the repository at this point in the history
  • Loading branch information
tericcabrel committed Aug 3, 2024
1 parent d47ccec commit 770f924
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/infra-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand All @@ -46,6 +46,8 @@ jobs:
- name: Create Plan Run
uses: hashicorp/tfc-workflows-github/actions/[email protected]
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 }}
Expand Down

0 comments on commit 770f924

Please sign in to comment.