From fabced6a4ae1ab42463ea93ad201a94d5f93ab16 Mon Sep 17 00:00:00 2001 From: NicolasGensollen Date: Mon, 3 Jun 2024 18:05:36 +0200 Subject: [PATCH] try using a more recent version of cache --- .github/workflows/build_and_deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 51be856..0465223 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -30,16 +30,16 @@ jobs: with: version: ${{ env.POETRY_VERSION }} virtualenvs-create: false - - uses: actions/cache@v2 + - uses: actions/cache@v4 with: path: /local2/ci/miniconda3/envs/clinicadl_handbook key: ${{ env.CACHE_NUMBER }}-conda-${{ hashFiles('environment.yml') }} id: cache - - name: Update environment + - if: ${{ steps.cache.outputs.cache-hit != 'true' }} + name: Update environment run: | source ~/miniconda3/etc/profile.d/conda.sh conda env update -n clinicadl_handbook -f environment.yml - if: steps.cache.outputs.cache-hits != 'true' - name: Build documentation run: | source ~/miniconda3/etc/profile.d/conda.sh