Skip to content

Commit

Permalink
Manually generate terraform plan
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnaab committed Feb 25, 2025
1 parent 84e70ec commit 8116859
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/_terraform-plan-pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ jobs:
- name: Debug list files in the directory
run: ls -al /home/runner/work/forms/forms/infra/aws-cdk/dist

- name: Create Terraform plan
uses: dflook/terraform-plan@v1
- name: create terraform plan
working-directory: infra/cdktf/cdktf.out/stacks/${{ steps.get_stack_name.outputs.stack_name }}
run: |
terraform plan -out=tfplan -input=false
terraform show > tfplan.txt
- name: Add comment to PR with Terraform plan
uses: marocchino/sticky-pull-request-comment@v2
with:
path: infra/cdktf/cdktf.out/stacks/${{ steps.get_stack_name.outputs.stack_name }}
label: ${{ steps.get_stack_name.outputs.stack_name }}
path: tfplan.txt
header: "Terraform Plan for ${{ steps.get_stack_name.outputs.stack_name }}"

0 comments on commit 8116859

Please sign in to comment.