Skip to content

Commit

Permalink
chore!: upgrade to v6 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis authored Dec 30, 2024
1 parent 3024ec7 commit 485b1a6
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 21 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
id: terraform-version
- uses: actions/[email protected]
- uses: straw-hat-team/github-actions-workflows/asdf/[email protected]
id: opentofu-version
with:
plugin-name: terraform

- name: Install Terraform
uses: hashicorp/[email protected]
plugin-name: opentofu
- uses: opentofu/[email protected]
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
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
terraform 1.2.5
opentofu 1.8.7
2 changes: 1 addition & 1 deletion modules/alliance/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/chapter/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/guild/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/squad/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/tribe/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}
}
2 changes: 1 addition & 1 deletion modules/trio/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ terraform {
required_providers {
github = {
source = "integrations/github"
version = "~> 5.0"
version = "~> 6.0"
}
}
}

0 comments on commit 485b1a6

Please sign in to comment.