Skip to content

Commit

Permalink
Fix LFS sparse checkout (#2966)
Browse files Browse the repository at this point in the history
* Change checkout methods for atom data

* Change checkout methods for atom data in action.yml
  • Loading branch information
atharva-2001 authored Feb 5, 2025
1 parent 12b26c5 commit 304154a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/actions/setup_lfs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ runs:
key: tardis-regression-${{ inputs.atom-data-sparse == 'true' && 'atom-data-sparse' || 'full-data' }}-${{ hashFiles('tardis-regression-data/.lfs-files-list') }}-${{ inputs.regression-data-repo }}-v1
fail-on-cache-miss: true

- name: Git LFS Checkout
- name: Git LFS Checkout (Full)
if: inputs.atom-data-sparse != 'true' && steps.lfs-cache-regression-data.outputs.cache-hit == 'true'
run: git lfs checkout
working-directory: tardis-regression-data
if: steps.lfs-cache-regression-data.outputs.cache-hit == 'true'
shell: bash

- name: Git LFS Checkout (Sparse)
if: inputs.atom-data-sparse == 'true' && steps.lfs-cache-regression-data.outputs.cache-hit == 'true'
run: git lfs checkout atom_data/kurucz_cd23_chianti_H_He.h5
working-directory: tardis-regression-data
shell: bash
6 changes: 6 additions & 0 deletions .github/workflows/lfs-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
working-directory: tardis-regression-data

- name: Git LFS Checkout
if: ${{ inputs.atom-data-sparse == 'true' }}
run: git lfs checkout atom_data/kurucz_cd23_chianti_H_He.h5
working-directory: tardis-regression-data

- name: Git LFS Checkout Full
if: ${{ inputs.atom-data-sparse == 'false' }}
run: git lfs checkout
working-directory: tardis-regression-data

Expand Down

0 comments on commit 304154a

Please sign in to comment.