File tree 1 file changed +17
-0
lines changed
1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -51,12 +51,14 @@ jobs:
51
51
echo "MCAD Version: ${{ github.event.inputs.mcad-version }}"
52
52
echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
53
53
echo "InstaScale Version: ${{ github.event.inputs.instascale-version }}"
54
+ echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
54
55
echo "Is Stable: ${{ github.event.inputs.is-stable }}"
55
56
echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
56
57
echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
57
58
echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
58
59
59
60
release-mcad :
61
+ needs : check-kuberay-version
60
62
runs-on : ubuntu-latest
61
63
62
64
steps :
@@ -120,6 +122,7 @@ jobs:
120
122
if : ${{ env.INSTASCALE_RELEASE_STATUS_CODE != '200' }}
121
123
122
124
release-codeflare-sdk :
125
+ needs : check-kuberay-version
123
126
runs-on : ubuntu-latest
124
127
125
128
steps :
@@ -186,3 +189,17 @@ jobs:
186
189
env :
187
190
GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
188
191
shell : bash
192
+
193
+ check-kuberay-version :
194
+ runs-on : ubuntu-latest
195
+
196
+ steps :
197
+ - name : Check if KubeRay release exists
198
+ run : |
199
+ status_code=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/ray-project/kuberay/releases/tag/${{ github.event.inputs.kuberay-version }})
200
+ if [[ "$status_code" == "200" ]]; then
201
+ echo "KubeRay release with version ${{ github.event.inputs.kuberay-version }} exists and available to use."
202
+ else
203
+ echo "KubeRay release with version ${{ github.event.inputs.kuberay-version }} does not exist. Please select an existing version."
204
+ exit 1
205
+ fi
You can’t perform that action at this time.
0 commit comments