Skip to content

Commit

Permalink
Print outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosrodlop committed Mar 13, 2024
1 parent 898dc09 commit f9b7bfa
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}\`
<details><summary>Validation Output</summary>
\`\`\`\n
${{ steps.validate.outputs.stdout }}
\`\`\`

</details>

0 comments on commit f9b7bfa

Please sign in to comment.