Skip to content

Commit

Permalink
Update waf-k8s-destroy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ishikaray16 authored Dec 2, 2024
1 parent a434f01 commit 892f374
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/waf-k8s-destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- destroy-waf-k8s
pull_request:
workflow_dispatch:

jobs:
terraform_xc:
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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


Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 892f374

Please sign in to comment.