We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a46b073 commit 0e860e7Copy full SHA for 0e860e7
.github/actions/lint-terraform/action.yaml
@@ -11,10 +11,18 @@ runs:
11
shell: bash
12
run: |
13
check_only=true scripts/githooks/check-terraform-format.sh
14
+
15
+ - name: "Identify Terraform version"
16
+ shell: bash
17
+ id: identify-terraform-version
18
+ run: |
19
+ echo "terraform_version=$(grep "^terraform" .tool-versions | cut -f2 -d' ')" >> $GITHUB_OUTPUT
20
21
- name: "Install Terraform"
22
uses: hashicorp/setup-terraform@v3
23
with:
- terraform_version: "1.11.2"
24
+ terraform_version: "${{ steps.identify-terraform-version.outputs.terraform_version }}"
25
26
- name: "Validate Terraform"
27
28
0 commit comments