From 3dd0b2d46b6ea466d7c654f3601007787747c753 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Sat, 10 Jan 2026 16:37:06 -0300 Subject: [PATCH] fix: add fallback for ref parameter in cache-checkout action (#26703) 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 2f6779e1bb..706d9b5462 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: |