mirror of
https://github.com/actions/cache.git
synced 2025-06-18 23:02:57 -06:00
Setup GCS as primary cache option. Fallback to GH if GCS not setup
Basically, do exactly what GH did to save and restore cache with the exception being that the files are stored on GCS.
This commit is contained in:
parent
5a3ec84eff
commit
6ec565b197
10 changed files with 1063 additions and 7448 deletions
|
@ -1,4 +1,3 @@
|
|||
import * as cache from "@actions/cache";
|
||||
import * as core from "@actions/core";
|
||||
|
||||
import { Events, Inputs, State } from "./constants";
|
||||
|
@ -8,6 +7,7 @@ import {
|
|||
StateProvider
|
||||
} from "./stateProvider";
|
||||
import * as utils from "./utils/actionUtils";
|
||||
import * as cache from "./utils/gcsCache";
|
||||
|
||||
// Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
|
||||
// @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue