Skip to content

Commit cc827f6

Browse files
keithwillcodedevin-ai-integration[bot]
authored andcommitted
fix: add fallback for ref parameter in cache-checkout action (calcom#26703)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 3d5f798 commit cc827f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/actions/cache-checkout/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
if: steps.cache-checkout.outputs.cache-hit != 'true'
1818
uses: actions/checkout@v4
1919
with:
20-
ref: ${{ github.event.pull_request.head.sha }}
20+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
2121
fetch-depth: 2
2222
sparse-checkout-cone-mode: false
2323
sparse-checkout: |

0 commit comments

Comments
 (0)