Skip to content

Commit

Permalink
Add Infracost to Destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisthetechie committed Jan 29, 2025
1 parent 43a8f79 commit c667330
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions terraform-destroy/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ inputs:
encryption-key:
description: ARN of a KMS Key to use for Encryption
required: false
infracost-key:
description: API Key for InfraCost
dry-run:
description: Don't perform action, just output information
default: "true"
Expand Down Expand Up @@ -52,6 +54,7 @@ runs:
terraform-version: ${{ inputs.terraform-version }}
create-workspace: 'false'
encryption-key: ${{ inputs.encryption-key }}
infracost-key: ${{ inputs.infracost-key }}

- name: Terraform Apply
if: ${{ inputs.dry-run == 'false' && steps.plan.outputs.changes-detected == 'true' }}
Expand Down

0 comments on commit c667330

Please sign in to comment.