From 35c319041bad0491555aebb9a655a41bd151bf89 Mon Sep 17 00:00:00 2001 From: Atharva Arya <55894364+atharva-2001@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:07:11 +0530 Subject: [PATCH] Disallow Merge Refs from Creating Cache (#2965) Disallow merge refs to creating cache --- .github/workflows/lfs-cache.yml | 1 + 1 file changed, 1 insertion(+) 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