35
35
description : ' Owner of target community-operators-prod repository used to open a PR against'
36
36
required : true
37
37
default : ' redhat-openshift-ecosystem'
38
+ released-components :
39
+ description : ' Released components (remove operator dependencies which are not needed for a new release)'
40
+ required : true
41
+ default : ' mcad, instascale, sdk'
38
42
39
43
jobs :
40
44
release-mcad :
47
51
env :
48
52
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
49
53
shell : bash
54
+ if : ${{ contains(github.event.inputs.released-components, 'mcad') }}
50
55
51
56
- name : Wait for MCAD run to finish
52
57
run : |
57
62
env :
58
63
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
59
64
shell : bash
65
+ if : ${{ contains(github.event.inputs.released-components, 'mcad') }}
60
66
61
67
release-instascale :
62
68
needs : release-mcad
69
75
env :
70
76
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
71
77
shell : bash
78
+ if : ${{ contains(github.event.inputs.released-components, 'instascale') }}
72
79
73
80
- name : Wait for InstaScale run to finish
74
81
run : |
79
86
env :
80
87
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
81
88
shell : bash
89
+ if : ${{ contains(github.event.inputs.released-components, 'instascale') }}
82
90
83
91
release-codeflare-sdk :
84
92
runs-on : ubuntu-latest
92
100
env :
93
101
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
94
102
shell : bash
103
+ if : ${{ contains(github.event.inputs.released-components, 'sdk') }}
95
104
96
105
- name : Wait for CodeFlare SDK run to finish
97
106
run : |
@@ -102,6 +111,7 @@ jobs:
102
111
env :
103
112
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
104
113
shell : bash
114
+ if : ${{ contains(github.event.inputs.released-components, 'sdk') }}
105
115
106
116
release-codeflare-operator :
107
117
needs : [release-mcad, release-instascale, release-codeflare-sdk]
0 commit comments