Skip to content

Commit

Permalink
Fix boolean checks
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Feb 17, 2025
1 parent e420018 commit 4fc6b90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lfs-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
with:
repository: ${{ inputs.regression-data-repo }}
path: tardis-regression-data
sparse-checkout: ${{ inputs.atom-data-sparse == 'true' && 'atom_data/kurucz_cd23_chianti_H_He.h5' || '' }}
sparse-checkout: ${{ inputs.atom-data-sparse == true && 'atom_data/kurucz_cd23_chianti_H_He.h5' || '' }}

- name: Create LFS file list
run: |
Expand All @@ -58,7 +58,7 @@ jobs:
id: test-lfs-cache-regression-data
with:
path: tardis-regression-data/.git/lfs
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
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
lookup-only: true

- name: Fail if LFS pull is needed but not allowed
Expand Down Expand Up @@ -86,12 +86,12 @@ jobs:
working-directory: tardis-regression-data

- name: Git LFS Checkout
if: ${{ inputs.atom-data-sparse == 'true' }}
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' }}
if: ${{ inputs.atom-data-sparse == false }}
run: git lfs checkout
working-directory: tardis-regression-data

Expand Down

0 comments on commit 4fc6b90

Please sign in to comment.