diff --git a/.github/workflows/setup-infra-pipeline.yml b/.github/workflows/setup-infra-pipeline.yml index 3506366f1..402f61ef0 100644 --- a/.github/workflows/setup-infra-pipeline.yml +++ b/.github/workflows/setup-infra-pipeline.yml @@ -53,7 +53,7 @@ jobs: run: | cd cicd/grid-capstone-terraform-infra terraform init - ls -al + - name: Terraform Validate run: | @@ -61,6 +61,14 @@ jobs: terraform validate terraform fmt + - name: Refactor changes push + run: | + cd cicd/grid-capstone-terraform-infra + git add . + git commit -am 'Refactored syntax and structure in .tf files' + git push + + - name: Terraform Apply run: | cd cicd/grid-capstone-terraform-infra