mirror of
https://code.forgejo.org/actions/cache.git
synced 2026-08-08 12:31:14 +00:00
@actions/cache restoreCache contract returns the matched key (primary or
restore) so callers can compare to primaryKey for cache-hit. Our wrapper
was returning the full gcs object path, so restoreImpl.ts always set
cache-hit=false → every job ran pnpm install --frozen-lockfile on top of
a restored node_modules, burning ~34s per job for nothing.
findFileOnGCS now returns { key, path }; outer wrapper returns the key.
|
||
|---|---|---|
| .. | ||
| utils | ||
| constants.ts | ||
| restore.ts | ||
| restoreImpl.ts | ||
| restoreOnly.ts | ||
| save.ts | ||
| saveImpl.ts | ||
| saveOnly.ts | ||
| stateProvider.ts | ||