From c3fd449cfda8ba3c8a43718591f44a36fa95e4ae Mon Sep 17 00:00:00 2001 From: zomars Date: Mon, 27 Feb 2023 14:07:52 -0700 Subject: [PATCH] a --- .github/actions/cache-build/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/cache-build/action.yml b/.github/actions/cache-build/action.yml index 912963ea061524..ecfa1b676ebc67 100644 --- a/.github/actions/cache-build/action.yml +++ b/.github/actions/cache-build/action.yml @@ -14,9 +14,10 @@ runs: cache-name: prod-build key-1: ${{ inputs.node_version }}-${{ hashFiles('yarn.lock') }} key-2: ${{ hashFiles('**.[jt]s', '**.[jt]sx') }} + key-3: ${{ github.event.pull_request.number || github.ref }} with: path: | ${{ github.workspace }}/apps/web/.next **/.turbo/** **/dist/** - key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }} + key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.key-1 }}-${{ env.key-2 }}-${{ env.key-3 }}