Commit d7eea67
authored
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
0 commit comments