File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -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 :
@@ -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 :
@@ -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.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