From 0d288941937ac659c6952ed06eab424041f64664 Mon Sep 17 00:00:00 2001 From: "keith@cal.com" Date: Sat, 10 Jan 2026 19:30:34 +0000 Subject: [PATCH] fix: add fallback for ref parameter in cache-checkout action Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/actions/cache-checkout/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/cache-checkout/action.yml b/.github/actions/cache-checkout/action.yml index 2f6779e1bb0a26..706d9b54625f86 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@v4 with: - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.event.pull_request.head.sha || github.sha }} fetch-depth: 2 sparse-checkout-cone-mode: false sparse-checkout: |