diff --git a/.github/workflows/bridge.yml b/.github/workflows/bridge.yml index 83e0512dc..5445e25b4 100644 --- a/.github/workflows/bridge.yml +++ b/.github/workflows/bridge.yml @@ -91,8 +91,32 @@ jobs: - name: Download refdata_compare notebook run: wget https://raw.githubusercontent.com/tardis-sn/tardis-refdata/master/notebooks/ref_data_compare_from_paths.ipynb - - name: Download reference data - run: bash .ci-helpers/download_reference_data.sh + - name: Clone tardis-sn/tardis-refdata + uses: actions/checkout@v2 + with: + repository: tardis-sn/tardis-refdata + path: tardis-refdata + + - name: Create LFS file list + run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id + working-directory: tardis-refdata + + - name: Restore LFS cache + uses: actions/cache@v2 + id: lfs-cache + with: + path: tardis-refdata/.git/lfs + key: ${{ runner.os }}-lfs-${{ hashFiles('tardis-refdata/.lfs-assets-id') }}-v${{ env.CACHE_NUMBER }} + + - name: Git LFS Pull + run: git lfs pull + working-directory: tardis-refdata + if: steps.lfs-cache.outputs.cache-hit != 'true' + + - name: Git LFS Checkout + run: git lfs checkout + working-directory: tardis-refdata + if: steps.lfs-cache.outputs.cache-hit == 'true' - name: Setup TARDIS environment uses: conda-incubator/setup-miniconda@v2