Skip to content

Commit d7eea67

Browse files
chore: use blobless partial clone in prebuild checkout
Address review feedback on the shallow-clone approach: - fetch-depth: 1/2 breaks .github/actions/version which needs git describe --tags --long main on the full commit graph. - changed-files@v45 detected the shallow clone and spent ~30s deepening it itself, negating the checkout speedup. Switch to fetch-depth: 0 + filter: blob:none (blobless partial clone) which keeps the full commit graph and tags but skips the expensive blob download. This gives git describe what it needs while cutting checkout time. The conditional checkout skip for release builds (workflow_call with version supplied) remains — no prebuild step needs the repo on that path.
1 parent 1eb5268 commit d7eea67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build-unitycloud.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ jobs:
259259
if: github.event_name == 'pull_request' || (github.event.inputs.version == '' && inputs.version == '')
260260
uses: actions/checkout@v6
261261
with:
262-
fetch-depth: ${{ github.event_name == 'pull_request' && 1 || 2 }}
262+
fetch-depth: 0
263+
filter: blob:none
263264

264265
- name: Detect changes under Explorer/**
265266
if: github.event_name == 'pull_request'

0 commit comments

Comments
 (0)