Skip to content

Commit

Permalink
Added tf destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
Abby Artagame committed Nov 12, 2024
1 parent 05490cf commit 6eb468d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/tf-plan-apply-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,8 @@ jobs:
# Terraform Plan Destroy - Check what to destroy
- name: Terraform Plan Destroy
run: |
export exitcode=0
terraform destroy -var-file='variables/dev.tfvars' -detailed-exitcode -no-color -out terraform.tfplan || export exitcode=$?
terraform destroy -var-file='variables/dev.tfvars'
echo "exitcode=$exitcode" >> $GITHUB_OUTPUT
if [ $exitcode -eq 1 ]; then
echo Terraform Plan Failed!
exit 1
else
exit 0
fi
# # Terraform Destroy
# - name: Terraform Destroy
# run: |
Expand Down

0 comments on commit 6eb468d

Please sign in to comment.