Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
m110 committed Aug 29, 2024
1 parent 8daf61d commit 1b9ae32
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
- run: terraform show -no-color out.tfplan | tee plan

- uses: actions/github-script@v7
env:
FMT_OUTPUT: ${{ steps.fmt.outcome }}
INIT_OUTPUT: ${{ steps.init.outcome }}
VALIDATE_OUTPUT: ${{ steps.validate.outcome }}
PLAN_OUTPUT: ${{ steps.plan.outcome }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand All @@ -55,9 +60,9 @@ jobs:
return comment.user.type === 'Bot' && comment.body.includes('Terraform Format and Style')
})
const output = `#### Terraform Format and Style 🖌\`${{ steps.fmt.outcome }}\`
#### Terraform Initialization ⚙️\`${{ steps.init.outcome }}\`
#### Terraform Validation 🤖\`${{ steps.validate.outcome }}\`
const output = `#### Terraform Format and Style 🖌\`${process.env.FMT_OUTPUT}\`
#### Terraform Initialization ⚙️\`${process.env.INIT_OUTPUT}\`
#### Terraform Validation 🤖\`${process.env.VALIDATE_OUTPUT}\`
<details><summary>Validation Output</summary>
\`\`\`\n
Expand All @@ -66,7 +71,7 @@ jobs:
</details>
#### Terraform Plan 📖\`${{ steps.plan.outcome }}\`
#### Terraform Plan 📖\`${process.env.PLAN_OUTPUT}\`
<details><summary>Show Plan</summary>
Expand Down

0 comments on commit 1b9ae32

Please sign in to comment.