Skip to content

Commit

Permalink
Store output of terraform plan so we can use it in a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Jun 19, 2024
1 parent 24f9808 commit bab6a2a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/_terraform-plan-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
shell: bash
run: |
DEPLOY_ENV=${DEPLOY_ENV} pnpm cdktf diff --app "npx ts-node src/index.ts"
output=$(DEPLOY_ENV=${DEPLOY_ENV} pnpm cdktf diff --no-color --app "npx ts-node src/index.ts")
echo "${output}"
echo "::set-output name=stdout::$output"
working-directory: infra

- name: Create or update PR comment with Terraform plan
Expand Down

0 comments on commit bab6a2a

Please sign in to comment.