Skip to content

Commit 9c318d4

Browse files
authored
fix(deps): update @actions/cache to 4.0.2 (#1380)
1 parent 590bb4b commit 9c318d4

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

dist/index.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,20 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) {
412412
key,
413413
version
414414
};
415-
const response = yield twirpClient.CreateCacheEntry(request);
416-
if (!response.ok) {
415+
let signedUploadUrl;
416+
try {
417+
const response = yield twirpClient.CreateCacheEntry(request);
418+
if (!response.ok) {
419+
throw new Error('Response was not ok');
420+
}
421+
signedUploadUrl = response.signedUploadUrl;
422+
}
423+
catch (error) {
424+
core.debug(`Failed to reserve cache: ${error}`);
417425
throw new ReserveCacheError(`Unable to reserve cache with key ${key}, another job may be creating this cache.`);
418426
}
419427
core.debug(`Attempting to upload cache located at: ${archivePath}`);
420-
yield cacheHttpClient.saveCache(cacheId, archivePath, response.signedUploadUrl, options);
428+
yield cacheHttpClient.saveCache(cacheId, archivePath, signedUploadUrl, options);
421429
const finalizeRequest = {
422430
key,
423431
version,
@@ -93180,7 +93188,7 @@ const supportsColor = {
9318093188
/***/ ((module) => {
9318193189

9318293190
"use strict";
93183-
module.exports = JSON.parse('{"name":"@actions/cache","version":"4.0.1","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1"},"devDependencies":{"@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
93191+
module.exports = JSON.parse('{"name":"@actions/cache","version":"4.0.2","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1"},"devDependencies":{"@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
9318493192

9318593193
/***/ })
9318693194

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
},
3636
"homepage": "https://github.com/cypress-io/github-action#readme",
3737
"dependencies": {
38-
"@actions/cache": "4.0.1",
38+
"@actions/cache": "4.0.2",
3939
"@actions/core": "1.11.1",
4040
"@actions/exec": "1.1.1",
4141
"@actions/io": "1.1.3",

0 commit comments

Comments
 (0)