Breaking: removes fetch-depth, filter, sparse-checkout, sparse-checkout-cone-mode
inputs. Composite always populates full history + blob:none so every caller
for the same SHA gets the same tarball. Cache key simplifies to repo-<sha>.
Rationale: every sparse callsite in cula-platform runs downstream of a
full-tree-populating job (find_affected). Full-tree restore (~3-5s) is
faster than sparse clone (~10-20s). One cache entry per SHA, no
fragmentation, no races on conflicting tarball contents.
If someone needs a sparse checkout outside the cache, use raw actions/checkout.
description:"Restore the repo working tree from GCS keyed on commit SHA, falling back to actions/checkout on miss. Designed to be the first step of a job."
description:"Restore the repo working tree from GCS keyed on commit SHA, falling back to actions/checkout on miss. Always populates with full history + blob:none so every downstream job in the same run gets the same tarball regardless of its stated depth/filter needs."
inputs:
fetch-depth:
description:'Number of commits to fetch on cache miss. 0 = full history.'
required:false
default:'1'
filter:
description:'Partial clone filter (e.g. blob:none). Empty = full clone.'
required:false
default:''
sparse-checkout:
description:'Newline-separated sparse-checkout patterns. When set, the GCS cache is bypassed entirely and the step is a plain actions/checkout — avoids polluting the full-tree cache with sparse trees.'
required:false
default:''
sparse-checkout-cone-mode:
description:'Whether sparse-checkout patterns are cone-mode (true) or full patterns (false). Required as "false" when patterns include files, not just directories.'
required:false
default:'true'
ref:
description:'Branch, tag or SHA to check out on cache miss. Defaults to the workflow ref.'