Scheduling infrastructure for absolutely everyone.
fix: use PR head SHA for cache-checkout key in pull_request_target events (#26686)
Keith Williams728f55e4bca2
diff --git a/.github/actions/cache-checkout/action.yml b/.github/actions/cache-checkout/action.ymlindex 514d8e4c007..5a0242eda0b 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 }}