From 4fc6b90054f182864facd7d6d78be27946d2a024 Mon Sep 17 00:00:00 2001 From: Atharva Arya Date: Mon, 17 Feb 2025 18:50:04 +0530 Subject: [PATCH] Fix boolean checks --- .github/workflows/lfs-cache.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lfs-cache.yml b/.github/workflows/lfs-cache.yml index 930afdef9ed..13ef2f2a5f5 100644 --- a/.github/workflows/lfs-cache.yml +++ b/.github/workflows/lfs-cache.yml @@ -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: | @@ -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 @@ -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