@@ -51,12 +51,14 @@ jobs:
5151 echo "MCAD Version: ${{ github.event.inputs.mcad-version }}"
5252 echo "CodeFlare SDK Version: ${{ github.event.inputs.codeflare-sdk-version }}"
5353 echo "InstaScale Version: ${{ github.event.inputs.instascale-version }}"
54+ echo "Tested KubeRay Version: ${{ github.event.inputs.kuberay-version }}"
5455 echo "Is Stable: ${{ github.event.inputs.is-stable }}"
5556 echo "CodeFlare Repository Organization: ${{ github.event.inputs.codeflare-repository-organization }}"
5657 echo "Quay Organization: ${{ github.event.inputs.quay-organization }}"
5758 echo "Community Operators Prod Organization: ${{ github.event.inputs.community-operators-prod-organization }}"
5859
5960 release-mcad :
61+ needs : check-kuberay-version
6062 runs-on : ubuntu-latest
6163
6264 steps :
8890 if : ${{ env.MCAD_RELEASE_STATUS_CODE != '200' }}
8991
9092 release-instascale :
91- needs : release-mcad
93+ needs : [check-kuberay-version, release-mcad]
9294 runs-on : ubuntu-latest
9395
9496 steps :
@@ -120,6 +122,7 @@ jobs:
120122 if : ${{ env.INSTASCALE_RELEASE_STATUS_CODE != '200' }}
121123
122124 release-codeflare-sdk :
125+ needs : check-kuberay-version
123126 runs-on : ubuntu-latest
124127
125128 steps :
@@ -166,7 +169,7 @@ jobs:
166169 if : ${{ env.SDK_RELEASE_STATUS_CODE == '200' }}
167170
168171 release-codeflare-operator :
169- needs : [release-mcad, release-instascale, release-codeflare-sdk]
172+ needs : [check-kuberay-version, release-mcad, release-instascale, release-codeflare-sdk]
170173 runs-on : ubuntu-latest
171174
172175 steps :
@@ -186,3 +189,17 @@ jobs:
186189 env :
187190 GITHUB_TOKEN : ${{ secrets.CODEFLARE_MACHINE_ACCOUNT_TOKEN }}
188191 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.mcad-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
0 commit comments