From f36f6b4e8c9ff892d83eeb4595549bab08583f9a Mon Sep 17 00:00:00 2001 From: Chris Kelly Date: Thu, 3 Aug 2023 18:19:20 +0000 Subject: [PATCH] Fixes tflint flow --- .github/workflows/tflint.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index 5e47f63..add44ad 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -17,9 +17,7 @@ jobs: tflint_version: v0.46.1 - name: Initialize tflint run: | - find tenants/ -type f -name 'main.tf' -exec \ - bash -c 'for f; do tflint --init $(dirname "$f"); done' _ {} + + cd tenants/management && tflint --init - name: Run tflint run: | - find tenants/ -type f -name 'main.tf' -exec \ - bash -c 'for f; do tflint -f compact $(dirname "$f"); done' _ {} + \ No newline at end of file + cd tenants/management && tflint -f compact