Commit Graph

5 Commits (bd80c7d455e488c7c7b8098322808caf676e8fe0)

Author SHA1 Message Date
Jasperhino bd80c7d455 checkout: add sparse-checkout-cone-mode passthrough
Required when sparse-checkout patterns include files (not just dirs) —
lint-github-docs uses cone-mode=false to pin package.json, pnpm-lock.yaml
etc. Without the passthrough actions/checkout treats files as dirs.
3 months ago
Jasperhino 94243edc16 checkout: use sh instead of bash for credentials strip
Composite runs inside container jobs (e.g. jest-runtime, e2e runtimes)
that don't ship bash. The one-line git config command works in POSIX sh.
3 months ago
Jasperhino 51d4504259 checkout: default gcs-bucket to cula-warpbuild-ci-cache-ew1
Callers can omit gcs-bucket and get the Cula cache bucket; override via
input for other setups. Empty string still opts out of caching entirely.
3 months ago
Jasperhino f4c470a8aa checkout: add sparse-checkout input, bypass cache when sparse
Adds sparse-checkout input. When set, the composite skips GCS restore
and save entirely and falls through to a plain actions/checkout. This
keeps the full-tree cache uncontaminated by sparse subsets (which
would break subsequent full-tree reads on cache hit).
3 months ago
Jasperhino 4355f8bdbb Add checkout/ composite: GCS-cached working tree restore
First-step-capable checkout wrapper: uses Cula-Technologies/cache/restore
to pull a tarball of the repo keyed on SHA, falls back to actions/checkout
on miss then saves. Meant to be the first step of a job — avoids the
local-composite chicken-and-egg.
3 months ago