From cbaadaf4e408d4347b0a81c5994e181eac0333f3 Mon Sep 17 00:00:00 2001 From: Kevin Date: Fri, 27 Sep 2024 13:56:46 -0400 Subject: [PATCH] remove installation of packages in nb sync Signed-off-by: Kevin --- .github/workflows/odh-notebooks-sync.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/odh-notebooks-sync.yml b/.github/workflows/odh-notebooks-sync.yml index f1a9e0fe1..d31a49f52 100644 --- a/.github/workflows/odh-notebooks-sync.yml +++ b/.github/workflows/odh-notebooks-sync.yml @@ -62,10 +62,8 @@ jobs: mv "${1}" Pipfile mv "${2}" Pipfile.lock fi - if ! pipenv install ${package_name}~="${CODEFLARE_RELEASE_VERSION}"; then - echo "Failed to install ${package_name} with version ${CODEFLARE_RELEASE_VERSION} in $dir" - exit 1 - fi + # replace existing version of cf-sdk with new version in Pipfile + sed -i "s/codeflare-sdk = .*$/codeflare-sdk = \"~=$CODEFLARE_RELEASE_VERSION\"/g" Pipfile # Lock dependencies, ensuring pre-release are included and clear previous state if ! pipenv lock --pre --clear ; then echo "Failed to lock dependencies"