diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 09314eab..cfeb7e0d 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -20,7 +20,8 @@ jobs: uses: hashicorp/setup-terraform@v1 with: terraform_wrapper: false - terraform_version: 1.1.7 + # Match this value with .docker/agent + terraform_version: 1.6.6 - name: Initialize Terraform run: terraform init @@ -30,4 +31,20 @@ jobs: continue-on-error: true - name: Validate Terraform configuration - run: terraform validate -no-color + run: terraform validate + + - uses: actions/github-script@v6 + if: github.event_name == 'pull_request' + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\` + #### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\` + #### Terraform Validation 🤖\`${{ steps.validate.outcome }}\` +
Validation Output + + \`\`\`\n + ${{ steps.validate.outputs.stdout }} + \`\`\` + +