From a95bbaa159c24f3bbfced263510989111dc11ddb Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 18 May 2024 13:56:40 -0400 Subject: [PATCH] Only save prefix on cache miss --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f0d5973..47ac67f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -209,6 +209,7 @@ jobs: - name: Save Prefix id: cache-prefix-save uses: actions/cache/save@v4 + if: steps.cache-prefix-restore.outputs.cache-hit != 'true' with: path: ${{ steps.strings.outputs.prefix-dir }} key: ${{ steps.cache-prefix-restore.outputs.cache-primary-key }}