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:
Dany Sam 2025-04-10 22:55:13 +05:30
parent 5a3ec84eff
commit 6ec565b197
10 changed files with 1063 additions and 7448 deletions

View file

@ -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