From a953fd07dd710ad415f56f8f234f7f8458fe6232 Mon Sep 17 00:00:00 2001 From: Mathis Kappeler Date: Tue, 19 Dec 2023 10:42:09 +0100 Subject: [PATCH] test --- .github/workflows/terraform.yml | 45 +++++++++++++++++---------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 174739e..c586d3e 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -24,25 +24,26 @@ jobs: defaults: run: shell: bash - steps: - # Checkout the repository to the GitHub Actions runner - - name: Checkout - uses: actions/checkout@v3 - - # Install the latest version of Terraform CLI and configure the Terraform CLI configuration file with a Terraform Cloud user API token - - name: Setup Terraform - uses: hashicorp/setup-terraform@v2 - with: - cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }} - - # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. - - name: Terraform Init - run: terraform init - - # Generates an execution plan for Terraform - - name: Terraform Plan - run: terraform plan -input=false - - # Apply Terraform changes - - name: Terraform Apply - run: terraform apply -auto-approve -input=false + + steps: + # Checkout the repository to the GitHub Actions runner + - name: Checkout + uses: actions/checkout@v3 + + # Install the latest version of the Terraform CLI + - name: Setup Terraform + uses: hashicorp/setup-terraform@v2 + with: + terraform_wrapper: false + + # Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc. + - name: Terraform Init + run: terraform init + + # Generates an execution plan for Terraform + - name: Terraform Plan + run: terraform plan -input=false + + # Apply Terraform changes + - name: Terraform Apply + run: terraform apply -auto-approve -input=false