Skip to content

Commit

Permalink
Update waf-re-ac-vm-destroy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ishikaray16 authored Dec 3, 2024
1 parent 61dae45 commit 5f5e5f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/waf-re-ac-vm-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
run: exit 1

- name: Terraform Destroy
if: github.ref == 'refs/heads/destroy-waf-re-ac-vm' && github.event_name == 'push'
if: github.ref == 'refs/heads/destroy-waf-re-ac-vm' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: terraform destroy -auto-approve -input=false

terraform_vm:
Expand Down Expand Up @@ -156,7 +156,7 @@ jobs:
run: exit 1

- name: Terraform Destroy
if: github.ref == 'refs/heads/destroy-waf-re-ac-vm' && github.event_name == 'push'
if: github.ref == 'refs/heads/destroy-waf-re-ac-vm' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: terraform destroy -auto-approve -input=false

terraform_infra:
Expand Down Expand Up @@ -232,5 +232,5 @@ jobs:
run: exit 1

- name: Terraform Destroy
if: github.ref == 'refs/heads/destroy-waf-re-ac-vm' && github.event_name == 'push'
if: github.ref == 'refs/heads/destroy-waf-re-ac-vm' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: terraform destroy -auto-approve -input=false

0 comments on commit 5f5e5f3

Please sign in to comment.