diff --git a/.github/workflows/waf-k8s-destroy.yml b/.github/workflows/waf-k8s-destroy.yml index 797bd20b..76b61564 100644 --- a/.github/workflows/waf-k8s-destroy.yml +++ b/.github/workflows/waf-k8s-destroy.yml @@ -5,6 +5,7 @@ on: branches: - destroy-waf-k8s pull_request: + workflow_dispatch: jobs: terraform_xc: @@ -77,7 +78,7 @@ jobs: run: exit 1 - name: Terraform Destroy - if: github.ref == 'refs/heads/destroy-waf-k8s' && github.event_name == 'push' + if: github.ref == 'refs/heads/destroy-waf-k8s' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: terraform destroy -auto-approve -input=false env: TF_VAR_site_name: ${{ secrets.TF_VAR_site_name }} @@ -191,7 +192,7 @@ jobs: run: exit 1 - name: Terraform Destroy - if: github.ref == 'refs/heads/destroy-waf-k8s' && github.event_name == 'push' + if: github.ref == 'refs/heads/destroy-waf-k8s' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: terraform destroy -auto-approve -input=false @@ -266,7 +267,7 @@ jobs: run: exit 1 - name: Terraform Destroy - if: github.ref == 'refs/heads/destroy-waf-k8s' && github.event_name == 'push' + if: github.ref == 'refs/heads/destroy-waf-k8s' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: terraform destroy -auto-approve -input=false @@ -341,7 +342,7 @@ jobs: run: exit 1 - name: Terraform Destroy - if: github.ref == 'refs/heads/destroy-waf-k8s' && github.event_name == 'push' + if: github.ref == 'refs/heads/destroy-waf-k8s' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: terraform destroy -auto-approve -input=false terraform_infra: @@ -415,5 +416,5 @@ jobs: run: exit 1 - name: Terraform Destroy - if: github.ref == 'refs/heads/destroy-waf-k8s' && github.event_name == 'push' + if: github.ref == 'refs/heads/destroy-waf-k8s' && ( github.event_name == 'push' || github.event_name == 'workflow_dispatch') run: terraform destroy -auto-approve -input=false