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>
This commit is contained in:
Keith Williams
2026-01-10 19:37:06 +00:00
committed by GitHub
co-authored by Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent bf4cdf6245
commit 3dd0b2d46b
+1 -1
View File
@@ -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: |