Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
AyodeAwe committed Nov 25, 2024
1 parent e7c3f4d commit 8c70215
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ jobs:
run: |
terraform plan -out=tfplan -var="deployment_version=${{ env.DEPLOY_VERSION }}"
terraform show -no-color tfplan > plan.txt
echo "PLAN=$(cat plan.txt)" >> $GITHUB_ENV
PLAN_ENCODED=$(base64 -w 0 plan.txt)
echo "PLAN_ENCODED=$PLAN_ENCODED" >> $GITHUB_ENV
env:
TF_VAR_app_id: ${{ secrets.APP_ID }}
TF_VAR_webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
Expand All @@ -101,9 +102,10 @@ jobs:
with:
github-token: ${{ secrets.GPUTESTER_PAT }}
script: |
const planDecoded = Buffer.from(process.env.PLAN_ENCODED, 'base64').toString('utf-8');
const output = `#### Terraform Plan 📝
\`\`\`hcl\n
${process.env.PLAN}
\`\`\`hcl
${planDecoded}
\`\`\`
`;
github.rest.issues.createComment({
Expand Down

0 comments on commit 8c70215

Please sign in to comment.