diff --git a/.github/workflows/lfs-cache.yml b/.github/workflows/lfs-cache.yml index 500fc14237d..3651697d6c7 100644 --- a/.github/workflows/lfs-cache.yml +++ b/.github/workflows/lfs-cache.yml @@ -72,6 +72,7 @@ jobs: - name: Save LFS cache if not found uses: actions/cache/save@v4 + if: ${{ steps.test-lfs-cache-regression-data.outputs.cache-hit != 'true' && !contains(github.ref, 'merge') }} 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