Skip to content

Commit b71692e

Browse files
committed
fix: added destroy conditions for workflowdispatch
1 parent 52f4e8a commit b71692e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/destroy-preview-environment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818

1919
jobs:
2020
deploy-dev-pr-environment:
21-
if: contains(github.event.pull_request.labels.*.name, 'deploy-pr')
21+
if: contains(github.event.pull_request.labels.*.name, 'deploy-pr') || github.event_name == 'workflow_dispatch'
2222
runs-on: ubuntu-latest
2323
outputs:
2424
env_name: ${{ steps.env-name.outputs.PR_ENV_NAME }}
@@ -60,6 +60,8 @@ jobs:
6060
(github.event_name == 'pull_request' && github.event.action == 'unlabeled' && github.event.label.name == 'deploy-pr')
6161
||
6262
(github.event_name == 'pull_request' && github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'deploy-pr'))
63+
||
64+
github.event_name == 'workflow_dispatch'
6365
runs-on: ubuntu-latest
6466
steps:
6567
- name: Trigger workflow in another repo

0 commit comments

Comments
 (0)