Scheduling infrastructure for absolutely everyone.
fix: add fallback for ref parameter in cache-checkout action (#26703)
Keith Williams3dd0b2d46b6e
diff --git a/.github/actions/cache-checkout/action.yml b/.github/actions/cache-checkout/action.ymlindex 2f6779e1bb0..706d9b54625 100644--- a/.github/actions/cache-checkout/action.yml+++ b/.github/actions/cache-checkout/action.yml@@ -17,7 +17,7 @@ runs:if: steps.cache-checkout.outputs.cache-hit != 'true'uses: actions/checkout@v4with:- ref: ${{ github.event.pull_request.head.sha }}+ ref: ${{ github.event.pull_request.head.sha || github.sha }}fetch-depth: 2sparse-checkout-cone-mode: falsesparse-checkout: |