From f448ec9c191476854f7afbad12744167e3ed1840 Mon Sep 17 00:00:00 2001 From: swiknaba Date: Thu, 15 Jul 2021 15:44:55 +0200 Subject: [PATCH] simplify terraform fmt check --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0489805e..0122f6d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,4 @@ jobs: - name: lint formatting of ${{ matrix.module }} module run: | cd ${{ matrix.module }} - terraform fmt - CHANGES=$(git diff) - echo "$CHANGES" - if [[ -z "$CHANGES" ]]; then exit 0; else exit 1; fi + terraform fmt -check