diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index b78732eb591..086318e20d1 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -35,7 +35,7 @@ jobs: run: go build -o terraform-plugin-dir/terraform-provider-aws_v99.99.99_x5 . - name: override plugin run: mkdir -p ~/.terraform.d/plugins && cp terraform-plugin-dir/terraform-provider-aws_v99.99.99_x5 ~/.terraform.d/plugins - - uses: hashicorp/setup-terraform@v1 + - uses: hashicorp/setup-terraform@v2 with: terraform_version: ${{ matrix.terraform_version }} # Needed to use the output of `terraform validate -json` diff --git a/.github/workflows/terraform_provider.yml b/.github/workflows/terraform_provider.yml index cdcd1e63e4e..74497485550 100644 --- a/.github/workflows/terraform_provider.yml +++ b/.github/workflows/terraform_provider.yml @@ -105,7 +105,7 @@ jobs: path: terraform-plugin-dir key: ${{ runner.os }}-terraform-plugin-dir-${{ hashFiles('go.sum') }}-${{ hashFiles('aws/**') }} - if: steps.cache-terraform-providers-schema.outputs.cache-hit != 'true' || steps.cache-terraform-providers-schema.outcome == 'failure' - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v2 with: terraform_version: ${{ env.TERRAFORM_VERSION }} terraform_wrapper: false