Skip to content

Commit e378db2

Browse files
DTOSS-12784: Remove 'all' from manual dispatch - each run targets one environment
1 parent b09472e commit e378db2

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/cicd-2-main-branch.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ on:
88
inputs:
99
environment:
1010
description: "Target environment for infra + app deployment"
11-
required: false
11+
required: true
1212
type: choice
13-
default: all
13+
default: dev
1414
options:
15-
- all
1615
- dev
1716
- preprod
1817
- review
@@ -67,7 +66,13 @@ jobs:
6766
echo "deploy_preprod=false" >> "$GITHUB_OUTPUT"
6867
echo "deploy_review=true" >> "$GITHUB_OUTPUT"
6968
;;
69+
preprod)
70+
echo "deploy_dev=false" >> "$GITHUB_OUTPUT"
71+
echo "deploy_preprod=true" >> "$GITHUB_OUTPUT"
72+
echo "deploy_review=false" >> "$GITHUB_OUTPUT"
73+
;;
7074
*)
75+
# push-to-main (empty input): deploy to both dev and preprod
7176
echo "deploy_dev=true" >> "$GITHUB_OUTPUT"
7277
echo "deploy_preprod=true" >> "$GITHUB_OUTPUT"
7378
echo "deploy_review=false" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)