diff --git a/.github/actions/cache-checkout/action.yml b/.github/actions/cache-checkout/action.yml index 514d8e4c00..5a0242eda0 100644 --- a/.github/actions/cache-checkout/action.yml +++ b/.github/actions/cache-checkout/action.yml @@ -18,7 +18,7 @@ runs: !.git !node_modules !**/node_modules - key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.sha }} + key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.event.pull_request.head.sha || github.sha }} fail-on-cache-miss: true - name: Delete previous git-checkout caches for this branch @@ -37,4 +37,4 @@ runs: !.git !node_modules !**/node_modules - key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.sha }} + key: git-checkout-${{ github.head_ref || github.ref_name }}-${{ github.event.pull_request.head.sha || github.sha }}