diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml
index 6b51a27..f0f171a 100644
--- a/.github/workflows/pr.yml
+++ b/.github/workflows/pr.yml
@@ -29,6 +29,12 @@ jobs:
id: fmt
run: terraform fmt
continue-on-error: true
+ - uses: EndBug/add-and-commit@v7
+ with:
+ message: Terraform fmt [skip ci]
+ committer_name: GitHub Actions
+ committer_email: actions@github.com
+ continue-on-error: true
- name: Terraform Init
id: init
run: terraform init
@@ -49,9 +55,18 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
- const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
+ const output = `#### Terraform Format and Style 🖌
+
+ Show Formatted Files
+
+ \`\`\`\n
+ ${{ steps.fmt.outputs.stdout }}
+ \`\`\`
+
+
+
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
- #### Terraform Validation 🤖\`${{ steps.validate.outputs.stdout }}\`
+ #### Terraform Validation 🤖 ${{ steps.validate.outputs.stdout }}
#### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
Show Plan