From 316240806b9b769ef88ce6999b641d739ff8dbe7 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 29 Dec 2024 22:20:47 -0500 Subject: [PATCH] chore!: upgrade to v6 --- .github/workflows/ci.yaml | 23 +++++++++-------------- .tool-versions | 2 +- modules/membership/provider.tf | 2 +- modules/repository/provider.tf | 2 +- modules/team/provider.tf | 2 +- 5 files changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6c06211..5f95a7c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -7,19 +7,14 @@ jobs: name: Terraform runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Read Terraform Version from .tool-versions - uses: straw-hat-team/github-actions-workflows/asdf/get-version@v1.7.0 - id: terraform-version + - uses: actions/checkout@v4.2.2 + - uses: straw-hat-team/github-actions-workflows/asdf/get-version@v1.7.0 + id: opentofu-version with: - plugin-name: terraform - - - name: Install Terraform - uses: hashicorp/setup-terraform@v3.1.2 + plugin-name: opentofu + - uses: opentofu/setup-opentofu@v1.0.5 with: - terraform_version: ${{ steps.terraform-version.outputs.plugin-version }} - - - name: Terraform format - run: terraform fmt -check -recursive . + tofu_version: ${{ steps.opentofu-version.outputs.plugin-version }} + tofu_wrapper: true + - name: tofu fmt + run: tofu fmt -check -recursive -diff diff --git a/.tool-versions b/.tool-versions index abe0266..6fc8222 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -terraform 1.2.5 +opentofu 1.8.7 diff --git a/modules/membership/provider.tf b/modules/membership/provider.tf index 04851fe..6fbc364 100644 --- a/modules/membership/provider.tf +++ b/modules/membership/provider.tf @@ -3,7 +3,7 @@ terraform { required_providers { github = { source = "integrations/github" - version = "~> 5.0" + version = "~> 6.0" } } } diff --git a/modules/repository/provider.tf b/modules/repository/provider.tf index 04851fe..6fbc364 100644 --- a/modules/repository/provider.tf +++ b/modules/repository/provider.tf @@ -3,7 +3,7 @@ terraform { required_providers { github = { source = "integrations/github" - version = "~> 5.0" + version = "~> 6.0" } } } diff --git a/modules/team/provider.tf b/modules/team/provider.tf index 04851fe..6fbc364 100644 --- a/modules/team/provider.tf +++ b/modules/team/provider.tf @@ -3,7 +3,7 @@ terraform { required_providers { github = { source = "integrations/github" - version = "~> 5.0" + version = "~> 6.0" } } }