Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogyie committed May 14, 2023
1 parent cbcd488 commit ea67117
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-fmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit ea67117

Please sign in to comment.