3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2026-08-11 05:48:56 +00:00
Commit graph

5 commits

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.
2026-04-24 11:08:59 +02:00
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.
2026-04-24 11:04:50 +02:00
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.
2026-04-24 10:58:14 +02:00
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).
2026-04-24 10:57:19 +02:00
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.
2026-04-24 10:46:08 +02:00