mirror of
				https://github.com/actions/cache.git
				synced 2025-10-28 16:28:35 +08:00 
			
		
		
		
	Compare commits
	
		
			5 Commits
		
	
	
		
			1c3b4952aa
			...
			eab16fce90
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | eab16fce90 | ||
|   | 0057852bfa | ||
|   | 4f5ea67f1c | ||
|   | 9fcad95d03 | ||
|   | 44401f0ae6 | 
							
								
								
									
										51
									
								
								.github/workflows/npm-gulp.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								.github/workflows/npm-gulp.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							|  | @ -0,0 +1,51 @@ | |||
|             - name: Cache | ||||
|   uses: actions/cache@v4.2.3 | ||||
|   with: | ||||
|     # A list of files, directories, and wildcard patterns to cache and restore | ||||
|     path:  | ||||
|     # An explicit key for restoring and saving the cache | ||||
|     key:  | ||||
|     # An ordered multiline string listing the prefix-matched keys, that are used for restoring stale cache if no cache hit occurred for key. Note `cache-hit` returns false in this case. | ||||
|     restore-keys: # optional | ||||
|     # The chunk size used to split up large files during upload, in bytes | ||||
|     upload-chunk-size: # optional | ||||
|     # An optional boolean when enabled, allows windows runners to save or restore caches that can be restored or saved respectively on other platforms | ||||
|     enableCrossOsArchive: # optional, default is false | ||||
|     # Fail the workflow if cache entry is not found | ||||
|     fail-on-cache-miss: # optional, default is false | ||||
|     # Check if a cache entry exists for the given input(s) (key, restore-keys) without downloading the cache | ||||
|     lookup-only: # optional, default is false | ||||
|     # Run the post step to save the cache even if another step before fails | ||||
|     save-always: # optional, default is false | ||||
|            | ||||
| 
 | ||||
| name: NodeJS with Gulp | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: [ "main" ] | ||||
|   pull_request: | ||||
|     branches: [ "main" ] | ||||
| 
 | ||||
| jobs: | ||||
|   build: | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     strategy: | ||||
|       matrix: | ||||
|         node-version: [18.x, 20.x, 22.x] | ||||
| 
 | ||||
|     steps: | ||||
|     - uses: actions/checkout@v4 | ||||
| 
 | ||||
|     - name: Use Node.js ${{ matrix.node-version }} | ||||
|       uses: actions/setup-node@v4 | ||||
|       with: | ||||
|         node-version: ${{ matrix.node-version }} | ||||
| 
 | ||||
|     - name: Build | ||||
|       run: | | ||||
|         npm install | ||||
|         gulp | ||||
| 
 | ||||
|   | ||||
							
								
								
									
										
											BIN
										
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.licenses/npm/@actions/cache.dep.yml
									
									
									
										generated
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							|  | @ -1,5 +1,9 @@ | |||
| # Releases | ||||
| 
 | ||||
| ### 4.3.0 | ||||
| 
 | ||||
| - Bump `@actions/cache` to [v4.1.0](https://github.com/actions/toolkit/pull/2132) | ||||
| 
 | ||||
| ### 4.2.4 | ||||
| 
 | ||||
| - Bump `@actions/cache` to v4.0.5 | ||||
|  |  | |||
							
								
								
									
										50
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge | |||
|     }); | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| const core = __importStar(__nccwpck_require__(7484)); | ||||
| const path = __importStar(__nccwpck_require__(6928)); | ||||
| const utils = __importStar(__nccwpck_require__(8299)); | ||||
|  | @ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171)); | |||
| const cacheTwirpClient = __importStar(__nccwpck_require__(6819)); | ||||
| const config_1 = __nccwpck_require__(7606); | ||||
| const tar_1 = __nccwpck_require__(5321); | ||||
| const constants_1 = __nccwpck_require__(8287); | ||||
| const http_client_1 = __nccwpck_require__(4844); | ||||
| class ValidationError extends Error { | ||||
|     constructor(message) { | ||||
|  | @ -65,6 +64,14 @@ class ReserveCacheError extends Error { | |||
|     } | ||||
| } | ||||
| exports.ReserveCacheError = ReserveCacheError; | ||||
| class FinalizeCacheError extends Error { | ||||
|     constructor(message) { | ||||
|         super(message); | ||||
|         this.name = 'FinalizeCacheError'; | ||||
|         Object.setPrototypeOf(this, FinalizeCacheError.prototype); | ||||
|     } | ||||
| } | ||||
| exports.FinalizeCacheError = FinalizeCacheError; | ||||
| function checkPaths(paths) { | ||||
|     if (!paths || paths.length === 0) { | ||||
|         throw new ValidationError(`Path Validation Error: At least one directory or file path is required`); | ||||
|  | @ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             } | ||||
|             const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); | ||||
|             core.debug(`File Size: ${archiveFileSize}`); | ||||
|             // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | ||||
|             if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) { | ||||
|                 throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`); | ||||
|             } | ||||
|             // Set the archive size in the options, will be used to display the upload progress
 | ||||
|             options.archiveSizeBytes = archiveFileSize; | ||||
|             core.debug('Reserving Cache'); | ||||
|  | @ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             try { | ||||
|                 const response = yield twirpClient.CreateCacheEntry(request); | ||||
|                 if (!response.ok) { | ||||
|                     throw new Error('Response was not ok'); | ||||
|                     if (response.message) { | ||||
|                         core.warning(`Cache reservation failed: ${response.message}`); | ||||
|                     } | ||||
|                     throw new Error(response.message || 'Response was not ok'); | ||||
|                 } | ||||
|                 signedUploadUrl = response.signedUploadUrl; | ||||
|             } | ||||
|  | @ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest); | ||||
|             core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`); | ||||
|             if (!finalizeResponse.ok) { | ||||
|                 if (finalizeResponse.message) { | ||||
|                     throw new FinalizeCacheError(finalizeResponse.message); | ||||
|                 } | ||||
|                 throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`); | ||||
|             } | ||||
|             cacheId = parseInt(finalizeResponse.entryId); | ||||
|  | @ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             else if (typedError.name === ReserveCacheError.name) { | ||||
|                 core.info(`Failed to save: ${typedError.message}`); | ||||
|             } | ||||
|             else if (typedError.name === FinalizeCacheError.name) { | ||||
|                 core.warning(typedError.message); | ||||
|             } | ||||
|             else { | ||||
|                 // Log server errors (5xx) as errors, all other errors as warnings
 | ||||
|                 if (typedError instanceof http_client_1.HttpClientError && | ||||
|  | @ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.CreateCacheEntryResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, signedUploadUrl: "" }; | ||||
|         const message = { ok: false, signedUploadUrl: "", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|                 case /* string signed_upload_url */ 2: | ||||
|                     message.signedUploadUrl = reader.string(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|         /* string signed_upload_url = 2; */ | ||||
|         if (message.signedUploadUrl !== "") | ||||
|             writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ } | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, entryId: "0" }; | ||||
|         const message = { ok: false, entryId: "0", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|                 case /* int64 entry_id */ 2: | ||||
|                     message.entryId = reader.int64().toString(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|         /* int64 entry_id = 2; */ | ||||
|         if (message.entryId !== "0") | ||||
|             writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -66524,7 +66550,7 @@ module.exports = require("zlib"); | |||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										50
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge | |||
|     }); | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| const core = __importStar(__nccwpck_require__(7484)); | ||||
| const path = __importStar(__nccwpck_require__(6928)); | ||||
| const utils = __importStar(__nccwpck_require__(8299)); | ||||
|  | @ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171)); | |||
| const cacheTwirpClient = __importStar(__nccwpck_require__(6819)); | ||||
| const config_1 = __nccwpck_require__(7606); | ||||
| const tar_1 = __nccwpck_require__(5321); | ||||
| const constants_1 = __nccwpck_require__(8287); | ||||
| const http_client_1 = __nccwpck_require__(4844); | ||||
| class ValidationError extends Error { | ||||
|     constructor(message) { | ||||
|  | @ -65,6 +64,14 @@ class ReserveCacheError extends Error { | |||
|     } | ||||
| } | ||||
| exports.ReserveCacheError = ReserveCacheError; | ||||
| class FinalizeCacheError extends Error { | ||||
|     constructor(message) { | ||||
|         super(message); | ||||
|         this.name = 'FinalizeCacheError'; | ||||
|         Object.setPrototypeOf(this, FinalizeCacheError.prototype); | ||||
|     } | ||||
| } | ||||
| exports.FinalizeCacheError = FinalizeCacheError; | ||||
| function checkPaths(paths) { | ||||
|     if (!paths || paths.length === 0) { | ||||
|         throw new ValidationError(`Path Validation Error: At least one directory or file path is required`); | ||||
|  | @ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             } | ||||
|             const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); | ||||
|             core.debug(`File Size: ${archiveFileSize}`); | ||||
|             // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | ||||
|             if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) { | ||||
|                 throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`); | ||||
|             } | ||||
|             // Set the archive size in the options, will be used to display the upload progress
 | ||||
|             options.archiveSizeBytes = archiveFileSize; | ||||
|             core.debug('Reserving Cache'); | ||||
|  | @ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             try { | ||||
|                 const response = yield twirpClient.CreateCacheEntry(request); | ||||
|                 if (!response.ok) { | ||||
|                     throw new Error('Response was not ok'); | ||||
|                     if (response.message) { | ||||
|                         core.warning(`Cache reservation failed: ${response.message}`); | ||||
|                     } | ||||
|                     throw new Error(response.message || 'Response was not ok'); | ||||
|                 } | ||||
|                 signedUploadUrl = response.signedUploadUrl; | ||||
|             } | ||||
|  | @ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest); | ||||
|             core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`); | ||||
|             if (!finalizeResponse.ok) { | ||||
|                 if (finalizeResponse.message) { | ||||
|                     throw new FinalizeCacheError(finalizeResponse.message); | ||||
|                 } | ||||
|                 throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`); | ||||
|             } | ||||
|             cacheId = parseInt(finalizeResponse.entryId); | ||||
|  | @ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             else if (typedError.name === ReserveCacheError.name) { | ||||
|                 core.info(`Failed to save: ${typedError.message}`); | ||||
|             } | ||||
|             else if (typedError.name === FinalizeCacheError.name) { | ||||
|                 core.warning(typedError.message); | ||||
|             } | ||||
|             else { | ||||
|                 // Log server errors (5xx) as errors, all other errors as warnings
 | ||||
|                 if (typedError instanceof http_client_1.HttpClientError && | ||||
|  | @ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.CreateCacheEntryResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, signedUploadUrl: "" }; | ||||
|         const message = { ok: false, signedUploadUrl: "", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|                 case /* string signed_upload_url */ 2: | ||||
|                     message.signedUploadUrl = reader.string(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|         /* string signed_upload_url = 2; */ | ||||
|         if (message.signedUploadUrl !== "") | ||||
|             writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ } | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, entryId: "0" }; | ||||
|         const message = { ok: false, entryId: "0", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|                 case /* int64 entry_id */ 2: | ||||
|                     message.entryId = reader.int64().toString(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|         /* int64 entry_id = 2; */ | ||||
|         if (message.entryId !== "0") | ||||
|             writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -66524,7 +66550,7 @@ module.exports = require("zlib"); | |||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										50
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge | |||
|     }); | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| const core = __importStar(__nccwpck_require__(7484)); | ||||
| const path = __importStar(__nccwpck_require__(6928)); | ||||
| const utils = __importStar(__nccwpck_require__(8299)); | ||||
|  | @ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171)); | |||
| const cacheTwirpClient = __importStar(__nccwpck_require__(6819)); | ||||
| const config_1 = __nccwpck_require__(7606); | ||||
| const tar_1 = __nccwpck_require__(5321); | ||||
| const constants_1 = __nccwpck_require__(8287); | ||||
| const http_client_1 = __nccwpck_require__(4844); | ||||
| class ValidationError extends Error { | ||||
|     constructor(message) { | ||||
|  | @ -65,6 +64,14 @@ class ReserveCacheError extends Error { | |||
|     } | ||||
| } | ||||
| exports.ReserveCacheError = ReserveCacheError; | ||||
| class FinalizeCacheError extends Error { | ||||
|     constructor(message) { | ||||
|         super(message); | ||||
|         this.name = 'FinalizeCacheError'; | ||||
|         Object.setPrototypeOf(this, FinalizeCacheError.prototype); | ||||
|     } | ||||
| } | ||||
| exports.FinalizeCacheError = FinalizeCacheError; | ||||
| function checkPaths(paths) { | ||||
|     if (!paths || paths.length === 0) { | ||||
|         throw new ValidationError(`Path Validation Error: At least one directory or file path is required`); | ||||
|  | @ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             } | ||||
|             const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); | ||||
|             core.debug(`File Size: ${archiveFileSize}`); | ||||
|             // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | ||||
|             if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) { | ||||
|                 throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`); | ||||
|             } | ||||
|             // Set the archive size in the options, will be used to display the upload progress
 | ||||
|             options.archiveSizeBytes = archiveFileSize; | ||||
|             core.debug('Reserving Cache'); | ||||
|  | @ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             try { | ||||
|                 const response = yield twirpClient.CreateCacheEntry(request); | ||||
|                 if (!response.ok) { | ||||
|                     throw new Error('Response was not ok'); | ||||
|                     if (response.message) { | ||||
|                         core.warning(`Cache reservation failed: ${response.message}`); | ||||
|                     } | ||||
|                     throw new Error(response.message || 'Response was not ok'); | ||||
|                 } | ||||
|                 signedUploadUrl = response.signedUploadUrl; | ||||
|             } | ||||
|  | @ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest); | ||||
|             core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`); | ||||
|             if (!finalizeResponse.ok) { | ||||
|                 if (finalizeResponse.message) { | ||||
|                     throw new FinalizeCacheError(finalizeResponse.message); | ||||
|                 } | ||||
|                 throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`); | ||||
|             } | ||||
|             cacheId = parseInt(finalizeResponse.entryId); | ||||
|  | @ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             else if (typedError.name === ReserveCacheError.name) { | ||||
|                 core.info(`Failed to save: ${typedError.message}`); | ||||
|             } | ||||
|             else if (typedError.name === FinalizeCacheError.name) { | ||||
|                 core.warning(typedError.message); | ||||
|             } | ||||
|             else { | ||||
|                 // Log server errors (5xx) as errors, all other errors as warnings
 | ||||
|                 if (typedError instanceof http_client_1.HttpClientError && | ||||
|  | @ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.CreateCacheEntryResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, signedUploadUrl: "" }; | ||||
|         const message = { ok: false, signedUploadUrl: "", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|                 case /* string signed_upload_url */ 2: | ||||
|                     message.signedUploadUrl = reader.string(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|         /* string signed_upload_url = 2; */ | ||||
|         if (message.signedUploadUrl !== "") | ||||
|             writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ } | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, entryId: "0" }; | ||||
|         const message = { ok: false, entryId: "0", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|                 case /* int64 entry_id */ 2: | ||||
|                     message.entryId = reader.int64().toString(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|         /* int64 entry_id = 2; */ | ||||
|         if (message.entryId !== "0") | ||||
|             writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -66537,7 +66563,7 @@ module.exports = require("zlib"); | |||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										50
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										50
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -39,7 +39,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge | |||
|     }); | ||||
| }; | ||||
| Object.defineProperty(exports, "__esModule", ({ value: true })); | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| exports.saveCache = exports.restoreCache = exports.isFeatureAvailable = exports.FinalizeCacheError = exports.ReserveCacheError = exports.ValidationError = void 0; | ||||
| const core = __importStar(__nccwpck_require__(7484)); | ||||
| const path = __importStar(__nccwpck_require__(6928)); | ||||
| const utils = __importStar(__nccwpck_require__(8299)); | ||||
|  | @ -47,7 +47,6 @@ const cacheHttpClient = __importStar(__nccwpck_require__(3171)); | |||
| const cacheTwirpClient = __importStar(__nccwpck_require__(6819)); | ||||
| const config_1 = __nccwpck_require__(7606); | ||||
| const tar_1 = __nccwpck_require__(5321); | ||||
| const constants_1 = __nccwpck_require__(8287); | ||||
| const http_client_1 = __nccwpck_require__(4844); | ||||
| class ValidationError extends Error { | ||||
|     constructor(message) { | ||||
|  | @ -65,6 +64,14 @@ class ReserveCacheError extends Error { | |||
|     } | ||||
| } | ||||
| exports.ReserveCacheError = ReserveCacheError; | ||||
| class FinalizeCacheError extends Error { | ||||
|     constructor(message) { | ||||
|         super(message); | ||||
|         this.name = 'FinalizeCacheError'; | ||||
|         Object.setPrototypeOf(this, FinalizeCacheError.prototype); | ||||
|     } | ||||
| } | ||||
| exports.FinalizeCacheError = FinalizeCacheError; | ||||
| function checkPaths(paths) { | ||||
|     if (!paths || paths.length === 0) { | ||||
|         throw new ValidationError(`Path Validation Error: At least one directory or file path is required`); | ||||
|  | @ -441,10 +448,6 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             } | ||||
|             const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath); | ||||
|             core.debug(`File Size: ${archiveFileSize}`); | ||||
|             // For GHES, this check will take place in ReserveCache API with enterprise file size limit
 | ||||
|             if (archiveFileSize > constants_1.CacheFileSizeLimit && !(0, config_1.isGhes)()) { | ||||
|                 throw new Error(`Cache size of ~${Math.round(archiveFileSize / (1024 * 1024))} MB (${archiveFileSize} B) is over the 10GB limit, not saving cache.`); | ||||
|             } | ||||
|             // Set the archive size in the options, will be used to display the upload progress
 | ||||
|             options.archiveSizeBytes = archiveFileSize; | ||||
|             core.debug('Reserving Cache'); | ||||
|  | @ -457,7 +460,10 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             try { | ||||
|                 const response = yield twirpClient.CreateCacheEntry(request); | ||||
|                 if (!response.ok) { | ||||
|                     throw new Error('Response was not ok'); | ||||
|                     if (response.message) { | ||||
|                         core.warning(`Cache reservation failed: ${response.message}`); | ||||
|                     } | ||||
|                     throw new Error(response.message || 'Response was not ok'); | ||||
|                 } | ||||
|                 signedUploadUrl = response.signedUploadUrl; | ||||
|             } | ||||
|  | @ -475,6 +481,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             const finalizeResponse = yield twirpClient.FinalizeCacheEntryUpload(finalizeRequest); | ||||
|             core.debug(`FinalizeCacheEntryUploadResponse: ${finalizeResponse.ok}`); | ||||
|             if (!finalizeResponse.ok) { | ||||
|                 if (finalizeResponse.message) { | ||||
|                     throw new FinalizeCacheError(finalizeResponse.message); | ||||
|                 } | ||||
|                 throw new Error(`Unable to finalize cache with key ${key}, another job may be finalizing this cache.`); | ||||
|             } | ||||
|             cacheId = parseInt(finalizeResponse.entryId); | ||||
|  | @ -487,6 +496,9 @@ function saveCacheV2(paths, key, options, enableCrossOsArchive = false) { | |||
|             else if (typedError.name === ReserveCacheError.name) { | ||||
|                 core.info(`Failed to save: ${typedError.message}`); | ||||
|             } | ||||
|             else if (typedError.name === FinalizeCacheError.name) { | ||||
|                 core.warning(typedError.message); | ||||
|             } | ||||
|             else { | ||||
|                 // Log server errors (5xx) as errors, all other errors as warnings
 | ||||
|                 if (typedError instanceof http_client_1.HttpClientError && | ||||
|  | @ -598,11 +610,12 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.CreateCacheEntryResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|             { no: 2, name: "signed_upload_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, signedUploadUrl: "" }; | ||||
|         const message = { ok: false, signedUploadUrl: "", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -619,6 +632,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|                 case /* string signed_upload_url */ 2: | ||||
|                     message.signedUploadUrl = reader.string(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -637,6 +653,9 @@ class CreateCacheEntryResponse$Type extends runtime_5.MessageType { | |||
|         /* string signed_upload_url = 2; */ | ||||
|         if (message.signedUploadUrl !== "") | ||||
|             writer.tag(2, runtime_1.WireType.LengthDelimited).string(message.signedUploadUrl); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -720,11 +739,12 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|     constructor() { | ||||
|         super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse", [ | ||||
|             { no: 1, name: "ok", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }, | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ } | ||||
|             { no: 2, name: "entry_id", kind: "scalar", T: 3 /*ScalarType.INT64*/ }, | ||||
|             { no: 3, name: "message", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||||
|         ]); | ||||
|     } | ||||
|     create(value) { | ||||
|         const message = { ok: false, entryId: "0" }; | ||||
|         const message = { ok: false, entryId: "0", message: "" }; | ||||
|         globalThis.Object.defineProperty(message, runtime_4.MESSAGE_TYPE, { enumerable: false, value: this }); | ||||
|         if (value !== undefined) | ||||
|             (0, runtime_3.reflectionMergePartial)(this, message, value); | ||||
|  | @ -741,6 +761,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|                 case /* int64 entry_id */ 2: | ||||
|                     message.entryId = reader.int64().toString(); | ||||
|                     break; | ||||
|                 case /* string message */ 3: | ||||
|                     message.message = reader.string(); | ||||
|                     break; | ||||
|                 default: | ||||
|                     let u = options.readUnknownField; | ||||
|                     if (u === "throw") | ||||
|  | @ -759,6 +782,9 @@ class FinalizeCacheEntryUploadResponse$Type extends runtime_5.MessageType { | |||
|         /* int64 entry_id = 2; */ | ||||
|         if (message.entryId !== "0") | ||||
|             writer.tag(2, runtime_1.WireType.Varint).int64(message.entryId); | ||||
|         /* string message = 3; */ | ||||
|         if (message.message !== "") | ||||
|             writer.tag(3, runtime_1.WireType.LengthDelimited).string(message.message); | ||||
|         let u = options.writeUnknownFields; | ||||
|         if (u !== false) | ||||
|             (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||||
|  | @ -66537,7 +66563,7 @@ module.exports = require("zlib"); | |||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.5","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.1.0","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","@protobuf-ts/runtime-rpc":"^2.11.1","@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","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","@protobuf-ts/plugin":"^2.9.4","typescript":"^5.2.2"}}'); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										18
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										18
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							|  | @ -1,15 +1,15 @@ | |||
| { | ||||
|   "name": "cache", | ||||
|   "version": "4.2.3", | ||||
|   "version": "4.3.0", | ||||
|   "lockfileVersion": 2, | ||||
|   "requires": true, | ||||
|   "packages": { | ||||
|     "": { | ||||
|       "name": "cache", | ||||
|       "version": "4.2.3", | ||||
|       "version": "4.3.0", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "@actions/cache": "^4.0.5", | ||||
|         "@actions/cache": "^4.1.0", | ||||
|         "@actions/core": "^1.11.1", | ||||
|         "@actions/exec": "^1.1.1", | ||||
|         "@actions/io": "^1.1.3" | ||||
|  | @ -36,9 +36,9 @@ | |||
|       } | ||||
|     }, | ||||
|     "node_modules/@actions/cache": { | ||||
|       "version": "4.0.5", | ||||
|       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.5.tgz", | ||||
|       "integrity": "sha512-RjLz1/vvntOfp3FpkY3wB0MjVRbLq7bfQEuQG9UUTKwdtcYmFrKVmuD+9B6ADbzbkSfHM+dM4sMjdr3R4XIkFg==", | ||||
|       "version": "4.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.1.0.tgz", | ||||
|       "integrity": "sha512-z3Opg+P4Y7baq+g1dODXgdtsvPLSewr3ZKpp3U0HQR1A/vWCoJFS52XSezjdngo4SIOdR5oHtyK3a3Arar+X9A==", | ||||
|       "license": "MIT", | ||||
|       "dependencies": { | ||||
|         "@actions/core": "^1.11.1", | ||||
|  | @ -9548,9 +9548,9 @@ | |||
|   }, | ||||
|   "dependencies": { | ||||
|     "@actions/cache": { | ||||
|       "version": "4.0.5", | ||||
|       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.0.5.tgz", | ||||
|       "integrity": "sha512-RjLz1/vvntOfp3FpkY3wB0MjVRbLq7bfQEuQG9UUTKwdtcYmFrKVmuD+9B6ADbzbkSfHM+dM4sMjdr3R4XIkFg==", | ||||
|       "version": "4.1.0", | ||||
|       "resolved": "https://registry.npmjs.org/@actions/cache/-/cache-4.1.0.tgz", | ||||
|       "integrity": "sha512-z3Opg+P4Y7baq+g1dODXgdtsvPLSewr3ZKpp3U0HQR1A/vWCoJFS52XSezjdngo4SIOdR5oHtyK3a3Arar+X9A==", | ||||
|       "requires": { | ||||
|         "@actions/core": "^1.11.1", | ||||
|         "@actions/exec": "^1.0.1", | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { | ||||
|   "name": "cache", | ||||
|   "version": "4.2.4", | ||||
|   "version": "4.3.0", | ||||
|   "private": true, | ||||
|   "description": "Cache dependencies and build outputs", | ||||
|   "main": "dist/restore/index.js", | ||||
|  | @ -23,7 +23,7 @@ | |||
|   "author": "GitHub", | ||||
|   "license": "MIT", | ||||
|   "dependencies": { | ||||
|     "@actions/cache": "^4.0.5", | ||||
|     "@actions/cache": "^4.1.0", | ||||
|     "@actions/core": "^1.11.1", | ||||
|     "@actions/exec": "^1.1.1", | ||||
|     "@actions/io": "^1.1.3" | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user