From ea67117d6247deffac9596a9448c5bbd50ed9f1f Mon Sep 17 00:00:00 2001 From: bogyeong Date: Sun, 14 May 2023 16:01:03 +0900 Subject: [PATCH] fix --- .github/workflows/auto-fmt.yml | 2 +- entrypoint.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-fmt.yml b/.github/workflows/auto-fmt.yml index 0d15e80..a1ecfda 100644 --- a/.github/workflows/auto-fmt.yml +++ b/.github/workflows/auto-fmt.yml @@ -16,4 +16,4 @@ jobs: runs-on: ubuntu-latest name: auto-fmt steps: - - uses: Bogyie/auto-fmt@v0.1.0 + - uses: Bogyie/auto-fmt@v0.1.1 diff --git a/entrypoint.sh b/entrypoint.sh index e58a245..3660f5b 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -21,14 +21,12 @@ if [ -d repo ]; then for edited_file in $edited_files; do reformated_file=$(terraform fmt -list=true "$edited_file") if [ -n "$reformated_file" ]; then - echo $reformated_files reformated_files="$reformated_files\n-$reformated_file" fi done - echo $reformated_files # If exist re-formatting .tf file - if [ -n "$reformated_files"]; then + if [ -n "$reformated_files" ]; then git config --global user.name $INPUT_TRIGGERING_ACTOR && \ git config --global user.email $INPUT_TRIGGERING_ACTOR@github.com && \