Skip to content

Commit

Permalink
fix: Another fixtures for GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dgniewek committed Dec 16, 2022
1 parent 63cd5b6 commit e66295f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
env:
TERRAFORM_DOCS_VERSION: v0.16.0
TFLINT_VERSION: v0.36.1
TF_COMPOSITE_ACTIONS_VERSION: v1.8.3

jobs:
collectInputs:
Expand All @@ -23,7 +22,7 @@ jobs:

- name: Get root directories
id: dirs
uses: clowdhaus/terraform-composite-actions/directories@${{ env.TF_COMPOSITE_ACTIONS_VERSION }}
uses: clowdhaus/terraform-composite-actions/directories@v1.8.3

preCommitMinVersions:
name: Min TF pre-commit
Expand All @@ -45,15 +44,15 @@ jobs:
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory != '.' }}
uses: clowdhaus/terraform-composite-actions/pre-commit@{{ env.TF_COMPOSITE_ACTIONS_VERSION }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
args: "terraform-validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*"

- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory == '.' }}
uses: clowdhaus/terraform-composite-actions/pre-commit@{{ env.TF_COMPOSITE_ACTIONS_VERSION }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
args: "terraform-validate --color=always --show-diff-on-failure --files $(ls *.tf)"
Expand All @@ -77,7 +76,7 @@ jobs:
- run: terraform init

- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
uses: clowdhaus/terraform-composite-actions/pre-commit@{{ env.TF_COMPOSITE_ACTIONS_VERSION }}
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.3
with:
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}
Expand Down

0 comments on commit e66295f

Please sign in to comment.