From e787cb2bcd1f79a05410142f0df93b157b2ca4d2 Mon Sep 17 00:00:00 2001 From: oksanabaza Date: Tue, 14 Jan 2025 15:24:53 +0000 Subject: [PATCH] Add automated update step for component metadata file in CodeFlare release workflow --- .../workflows/project-codeflare-release.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/project-codeflare-release.yml b/.github/workflows/project-codeflare-release.yml index d946d5c55..44d768e2a 100644 --- a/.github/workflows/project-codeflare-release.yml +++ b/.github/workflows/project-codeflare-release.yml @@ -165,3 +165,29 @@ jobs: echo "Kueue release with version ${{ github.event.inputs.kueue-version }} does not exist. Please select an existing version." exit 1 fi + + generate-component-metadata: + needs: [check-appwrapper-version, check-kuberay-version, check-kueue-version] + runs-on: ubuntu-latest + + steps: + - name: Generate component_metadata.yaml + run: | + cat < config/component_metadata.yaml + releases: + - name: CodeFlare SDK + version: ${{ github.event.inputs.codeflare-sdk-version }} + repoUrl: https://github.com/project-codeflare/codeflare-sdk + - name: AppWrapper + version: ${{ github.event.inputs.appwrapper-version }} + repoUrl: https://github.com/project-codeflare/appwrapper + - name: KubeRay + version: ${{ github.event.inputs.kuberay-version }} + repoUrl: https://github.com/ray-project/kuberay + - name: Kueue + version: ${{ github.event.inputs.kueue-version }} + repoUrl: https://github.com/kubernetes-sigs/kueue + EOL + + - name: Verify generated file + run: cat config/component_metadata.yaml