@@ -14,101 +14,111 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
17
- # initial is when user starts workflow from UI(context is empty)
18
- # then train build goes through via repos using defined hander rules
19
- - name : Handle Zoo Control
20
- uses : jvalkeal/build-zoo-handler@v0.0.4
21
- with :
22
- dispatch-handler-token : ${{ secrets.SCDF_ACCESS_TOKEN }}
23
- dispatch-handler-max : 20
24
- dispatch-handler-config : >
25
- [
26
- {
27
- "if": "initial == true",
28
- "action": "workflow_dispatch",
29
- "workflow_dispatch": {
30
- "owner": "spring-cloud",
31
- "repo": "spring-cloud-deployer",
32
- "ref": "main",
33
- "workflow": "release-worker.yml"
17
+ # initial is when user starts workflow from UI(context is empty)
18
+ # then train build goes through via repos using defined hander rules
19
+ - name : Handle Zoo Control
20
+ uses : jvalkeal/build-zoo-handler@v0.0.4
21
+ with :
22
+ dispatch-handler-token : ${{ secrets.SCDF_ACCESS_TOKEN }}
23
+ dispatch-handler-max : 20
24
+ dispatch-handler-config : >
25
+ [
26
+ {
27
+ "if": "initial == true",
28
+ "action": "workflow_dispatch",
29
+ "workflow_dispatch": {
30
+ "owner": "spring-cloud",
31
+ "repo": "spring-cloud-deployer",
32
+ "ref": "main",
33
+ "workflow": "release-worker.yml"
34
+ }
35
+ },
36
+ {
37
+ "if": "data.event == 'build-succeed' && data.repo == 'spring-cloud-deployer' && data.owner == 'spring-cloud'",
38
+ "action": "workflow_dispatch",
39
+ "workflow_dispatch": {
40
+ "owner": "spring-cloud",
41
+ "repo": "spring-cloud-dataflow-ui",
42
+ "ref": "main",
43
+ "workflow": "release-worker.yml"
44
+ }
45
+ },
46
+ {
47
+ "if": "data.event == 'build-succeed' && data.repo == 'spring-cloud-dataflow-ui' && data.owner == 'spring-cloud'",
48
+ "action": "workflow_dispatch",
49
+ "workflow_dispatch": {
50
+ "owner": "spring-cloud",
51
+ "repo": "spring-cloud-dataflow",
52
+ "ref": "main",
53
+ "workflow": "release-worker.yml"
54
+ }
55
+ },
56
+ {
57
+ "if": "data.event == 'build-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
58
+ "action": "workflow_dispatch",
59
+ "workflow_dispatch": {
60
+ "owner": "spring-cloud",
61
+ "repo": "spring-cloud-dataflow",
62
+ "ref": "main",
63
+ "workflow": "carvel-worker.yml"
64
+ }
65
+ },
66
+ {
67
+ "if": "data.event == 'carvel-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
68
+ "action": "workflow_dispatch",
69
+ "workflow_dispatch": {
70
+ "owner": "spring-cloud",
71
+ "repo": "spring-cloud-dataflow",
72
+ "ref": "main",
73
+ "workflow": "promote-release.yml"
74
+ }
75
+ },
76
+ {
77
+ "if": "data.event == 'promote-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
78
+ "action": "workflow_dispatch",
79
+ "workflow_dispatch": {
80
+ "owner": "spring-cloud",
81
+ "repo": "spring-cloud-dataflow",
82
+ "ref": "main",
83
+ "workflow": "central-release.yml"
84
+ }
85
+ },
86
+ {
87
+ "if": "data.event == 'central-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
88
+ "action": "workflow_dispatch",
89
+ "workflow_dispatch": {
90
+ "owner": "spring-cloud",
91
+ "repo": "spring-cloud-dataflow",
92
+ "ref": "main",
93
+ "workflow": "github-release.yml"
94
+ }
95
+ },
96
+ {
97
+ "if": "data.event == 'promotion-failed'",
98
+ "action": "fail",
99
+ "fail": {
100
+ "message": "artifactory promotion failed"
101
+ }
102
+ },
103
+ {
104
+ "if": "data.event == 'central-failed'",
105
+ "action": "fail",
106
+ "fail": {
107
+ "message": "central sync failed"
108
+ }
109
+ },
110
+ {
111
+ "if": "data.event == 'ghrelease-failed'",
112
+ "action": "fail",
113
+ "fail": {
114
+ "message": "github release failed"
115
+ }
116
+ },
117
+ {
118
+ "if": "data.event == 'build-failed'",
119
+ "action": "fail",
120
+ "fail": {
121
+ "message": "something went wrong in build train"
122
+ }
34
123
}
35
- },
36
- {
37
- "if": "data.event == 'build-succeed' && data.repo == 'spring-cloud-deployer' && data.owner == 'spring-cloud'",
38
- "action": "workflow_dispatch",
39
- "workflow_dispatch": {
40
- "owner": "spring-cloud",
41
- "repo": "spring-cloud-dataflow-ui",
42
- "ref": "main",
43
- "workflow": "release-worker.yml"
44
- }
45
- },
46
- {
47
- "if": "data.event == 'build-succeed' && data.repo == 'spring-cloud-dataflow-ui' && data.owner == 'spring-cloud'",
48
- "action": "workflow_dispatch",
49
- "workflow_dispatch": {
50
- "owner": "spring-cloud",
51
- "repo": "spring-cloud-dataflow",
52
- "ref": "main",
53
- "workflow": "release-worker.yml"
54
- }
55
- },
56
- {
57
- "if": "data.event == 'build-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
58
- "action": "workflow_dispatch",
59
- "workflow_dispatch": {
60
- "owner": "spring-cloud",
61
- "repo": "spring-cloud-dataflow",
62
- "ref": "main",
63
- "workflow": "promote-release.yml"
64
- }
65
- },
66
- {
67
- "if": "data.event == 'promote-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
68
- "action": "workflow_dispatch",
69
- "workflow_dispatch": {
70
- "owner": "spring-cloud",
71
- "repo": "spring-cloud-dataflow",
72
- "ref": "main",
73
- "workflow": "central-release.yml"
74
- }
75
- },
76
- {
77
- "if": "data.event == 'central-succeed' && data.repo == 'spring-cloud-dataflow' && data.owner == 'spring-cloud'",
78
- "action": "workflow_dispatch",
79
- "workflow_dispatch": {
80
- "owner": "spring-cloud",
81
- "repo": "spring-cloud-dataflow",
82
- "ref": "main",
83
- "workflow": "github-release.yml"
84
- }
85
- },
86
- {
87
- "if": "data.event == 'promotion-failed'",
88
- "action": "fail",
89
- "fail": {
90
- "message": "artifactory promotion failed"
91
- }
92
- },
93
- {
94
- "if": "data.event == 'central-failed'",
95
- "action": "fail",
96
- "fail": {
97
- "message": "central sync failed"
98
- }
99
- },
100
- {
101
- "if": "data.event == 'ghrelease-failed'",
102
- "action": "fail",
103
- "fail": {
104
- "message": "github release failed"
105
- }
106
- },
107
- {
108
- "if": "data.event == 'build-failed'",
109
- "action": "fail",
110
- "fail": {
111
- "message": "something went wrong in build train"
112
- }
113
- }
114
- ]
124
+ ]
0 commit comments