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:
co-authored by
Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent
bf4cdf6245
commit
3dd0b2d46b
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user