From 94dc530bc4821708a570250fc277a2d476ce8ef8 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 3 May 2023 12:44:03 +0200 Subject: [PATCH 1/3] improve pre-commit run on GHA --- .github/workflows/run-precommit.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-precommit.yaml b/.github/workflows/run-precommit.yaml index 12c35bdff3..50904ae178 100644 --- a/.github/workflows/run-precommit.yaml +++ b/.github/workflows/run-precommit.yaml @@ -19,11 +19,7 @@ jobs: - name: Checkout repository 🔔 uses: actions/checkout@v3 - # https://github.com/pre-commit/action to enable cache - - uses: pre-commit/action@v3.0.0 - - - name: Install pre-commit 📦 - run: pip install pre-commit - - name: Run terraform pre-commit ⚡️ - run: pre-commit run terraform_fmt + uses: pre-commit/action@v3.0.0 + with: + extra_args: --all-files terraform_fmt From 1c2ba6ba7c032b32556263b0f6e0384ae30390c9 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 3 May 2023 12:44:41 +0200 Subject: [PATCH 2/3] [REVERTME] terraform_fmt failure --- nebari/template/stages/01-terraform-state/aws/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebari/template/stages/01-terraform-state/aws/main.tf b/nebari/template/stages/01-terraform-state/aws/main.tf index 544542e834..a775ab9175 100644 --- a/nebari/template/stages/01-terraform-state/aws/main.tf +++ b/nebari/template/stages/01-terraform-state/aws/main.tf @@ -5,7 +5,7 @@ variable "name" { variable "namespace" { description = "Namespace to create Kubernetes resources" - type = string + type= string } module "terraform-state" { From a803f5e0c52a133d28a5991db05560b7d1f16d24 Mon Sep 17 00:00:00 2001 From: Philip Meier Date: Wed, 3 May 2023 12:50:14 +0200 Subject: [PATCH 3/3] Revert "[REVERTME] terraform_fmt failure" This reverts commit 1c2ba6ba7c032b32556263b0f6e0384ae30390c9. --- nebari/template/stages/01-terraform-state/aws/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nebari/template/stages/01-terraform-state/aws/main.tf b/nebari/template/stages/01-terraform-state/aws/main.tf index a775ab9175..544542e834 100644 --- a/nebari/template/stages/01-terraform-state/aws/main.tf +++ b/nebari/template/stages/01-terraform-state/aws/main.tf @@ -5,7 +5,7 @@ variable "name" { variable "namespace" { description = "Namespace to create Kubernetes resources" - type= string + type = string } module "terraform-state" {