File tree Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Expand file tree Collapse file tree 1 file changed +26
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : Continuous deployment
2
- run-name : Continuous deployment of ${{ github.ref_name }} to QA and Test
2
+ run-name : >-
3
+ ${{ github.event_name == 'workflow_dispatch'
4
+ && format('Deployment of ${{ github.ref_name }} to {0}', inputs.environment)
5
+ || 'Continuous deployment of ${{ github.ref_name }} to QA and Test' }}
3
6
4
7
on :
5
8
push :
6
9
branches : [MAV-921_continuous_deployment_job]
10
+ workflow_dispatch :
11
+ inputs :
12
+ environment :
13
+ description : Deployment environment
14
+ required : true
15
+ type : choice
16
+ options :
17
+ - qa
18
+ - poc
19
+ - copilotmigration
20
+ - test
21
+ - preview
22
+ - training
23
+ - production
7
24
8
25
jobs :
9
26
test :
16
33
strategy :
17
34
fail-fast : false
18
35
matrix :
19
- environment : [qa, test]
36
+ environment : >-
37
+ ${{ fromJSON(github.event_name == 'workflow_dispatch'
38
+ && format('["{0}"]', inputs.environment)
39
+ || '["qa", "test"]') }}
20
40
uses : ./.github/workflows/deploy-infrastructure.yml
21
41
with :
22
42
environment : ${{ matrix.environment }}
25
45
strategy :
26
46
fail-fast : false
27
47
matrix :
28
- environment : [ qa, test ]
48
+ environment : >-
49
+ ${{ fromJSON(github.event_name == 'workflow_dispatch'
50
+ && format('["{0}"]', inputs.environment)
51
+ || '["qa", "test"]') }}
29
52
uses : ./.github/workflows/deploy-application.yml
30
53
with :
31
54
environment : ${{ matrix.environment }}
You can’t perform that action at this time.
0 commit comments