Skip to content

Commit

Permalink
chore!: upgrade to v6
Browse files Browse the repository at this point in the history
  • Loading branch information
yordis committed Dec 30, 2024
1 parent 2324d99 commit 3162408
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 18 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/membership/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/repository/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/team/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 3162408

Please sign in to comment.