From c3d1c81f6c06cad9937921f2bf21bfa222e38bcd Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Wed, 11 Sep 2024 14:20:56 +0200 Subject: [PATCH] ci: checkout LFS files from previous version to ensure upload --- .github/workflows/ci_cd.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index f094970bbe..aaf6637ee9 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -493,6 +493,10 @@ jobs: $env:PREVIOUS_PATCH_VERSION_NUMBER=$env:VERSION.substring($env:VERSION.Length - 1) $env:PREVIOUS_PATCH_VERSION_NUMBER=[int]$env:PREVIOUS_PATCH_VERSION_NUMBER - 1 $env:PREVIOUS_VERSION=$env:PREVIOUS_VERSION + $env:PREVIOUS_PATCH_VERSION_NUMBER + # Fetch the LFS files from the previous version + git lfs fetch origin --include="$env:PREVIOUS_VERSION/*" + git lfs checkout $env:PREVIOUS_VERSION + # Copy the binaries from the previous version cp ./$env:PREVIOUS_VERSION/windows-binaries.zip windows-binaries.zip cp ./$env:PREVIOUS_VERSION/linux-binaries.zip linux-binaries.zip