Skip to content

Commit

Permalink
fix: plan size
Browse files Browse the repository at this point in the history
  • Loading branch information
nikes committed Jun 8, 2023
1 parent 3f4a3c7 commit 5a4ad3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/terraform-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { readFile } = require("fs/promises")
const data = await readFile('plan.out')
const planOut = await readFile('plan.out')
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
Expand All @@ -88,7 +88,7 @@ jobs:
return comment.user.type === 'Bot' && comment.body.includes('|${{ inputs.operation }}| Terraform Format and Style')
})
const plan = "terraform\n" + data.length > 65000 ? `${data.substring(0, 65000)}...` : data
const plan = "terraform\n" + planOut.length > 63000 ? `${planOut.substring(0, 63000)}...` : planOut
const output = `#### |${{ inputs.operation }}| Terraform Format and Style: \`${{ steps.fmt.outcome }}\` ${{ steps.fmt.outcome == 'Success' && '✅' || '❌'}}
#### Terraform Initialization: \`${{ steps.init.outcome }}\` ${{ steps.init.outcome == 'Success' && '✅' || '❌'}}
Expand Down

0 comments on commit 5a4ad3f

Please sign in to comment.