Skip to content

Commit

Permalink
Update terraform-plan.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Aug 9, 2024
1 parent 9198eed commit bac210a
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/terraform-plan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,14 @@ jobs:
with:
node-version: 16

- uses: CSVD/gh-actions-setup-terraform@v2
with:
terraform_wrapper: false
# - uses: CSVD/gh-actions-setup-terraform@v2
# with:
# terraform_wrapper: false

- name: Terraform Format
id: fmt
run: |
terraform fmt
if ! git diff-index --quiet HEAD; then
git config --global user.name '${{ github.event.pull_request.user.login }}'
git config --global user.email 'github-actions@census.gov'
git commit -am "Autoformatting TF Code"
git push
echo "auto_format=true" >> $GITHUB_ENV
fi
terraform fmt -check
- name: Autoformat Halt
if: env.auto_format == 'true'
Expand Down

0 comments on commit bac210a

Please sign in to comment.