diff --git a/.github/workflows/waf-re-ac-vm-destroy.yml b/.github/workflows/waf-re-ac-vm-destroy.yml index 98cdbc9c..15c0658c 100644 --- a/.github/workflows/waf-re-ac-vm-destroy.yml +++ b/.github/workflows/waf-re-ac-vm-destroy.yml @@ -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: @@ -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: @@ -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