@@ -2179,7 +2179,7 @@ exports.digestForStream = digestForStream;
2179
2179
2180
2180
/***/ }),
2181
2181
2182
- /***/ 4609 :
2182
+ /***/ 3868 :
2183
2183
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2184
2184
2185
2185
@@ -2202,9 +2202,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
2202
2202
Object.defineProperty(exports, "__esModule", ({ value: true }));
2203
2203
const core = __importStar(__nccwpck_require__(7733));
2204
2204
const path = __importStar(__nccwpck_require__(1017));
2205
- const utils = __importStar(__nccwpck_require__(2707 ));
2206
- const cacheHttpClient = __importStar(__nccwpck_require__(1598 ));
2207
- const tar_1 = __nccwpck_require__(973 );
2205
+ const utils = __importStar(__nccwpck_require__(5628 ));
2206
+ const cacheHttpClient = __importStar(__nccwpck_require__(6765 ));
2207
+ const tar_1 = __nccwpck_require__(6905 );
2208
2208
class ValidationError extends Error {
2209
2209
constructor(message) {
2210
2210
super(message);
@@ -2279,6 +2279,10 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch
2279
2279
// Cache not found
2280
2280
return undefined;
2281
2281
}
2282
+ if (options === null || options === void 0 ? void 0 : options.lookupOnly) {
2283
+ core.info('Lookup only - skipping download');
2284
+ return cacheEntry.cacheKey;
2285
+ }
2282
2286
archivePath = path.join(yield utils.createTempDirectory(), utils.getCacheFileName(compressionMethod));
2283
2287
core.debug(`Archive Path: ${archivePath}`);
2284
2288
// Download the cache from the cache entry
@@ -2399,7 +2403,7 @@ exports.saveCache = saveCache;
2399
2403
2400
2404
/***/ }),
2401
2405
2402
- /***/ 1598 :
2406
+ /***/ 6765 :
2403
2407
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2404
2408
2405
2409
@@ -2426,10 +2430,10 @@ const auth_1 = __nccwpck_require__(4610);
2426
2430
const crypto = __importStar(__nccwpck_require__(6113));
2427
2431
const fs = __importStar(__nccwpck_require__(7147));
2428
2432
const url_1 = __nccwpck_require__(7310);
2429
- const utils = __importStar(__nccwpck_require__(2707 ));
2430
- const downloadUtils_1 = __nccwpck_require__(6898 );
2431
- const options_1 = __nccwpck_require__(4090 );
2432
- const requestUtils_1 = __nccwpck_require__(8536 );
2433
+ const utils = __importStar(__nccwpck_require__(5628 ));
2434
+ const downloadUtils_1 = __nccwpck_require__(5096 );
2435
+ const options_1 = __nccwpck_require__(677 );
2436
+ const requestUtils_1 = __nccwpck_require__(7369 );
2433
2437
const versionSalt = '1.0';
2434
2438
function getCacheApiUrl(resource) {
2435
2439
const baseUrl = process.env['ACTIONS_CACHE_URL'] || '';
@@ -2646,7 +2650,7 @@ exports.saveCache = saveCache;
2646
2650
2647
2651
/***/ }),
2648
2652
2649
- /***/ 2707 :
2653
+ /***/ 5628 :
2650
2654
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2651
2655
2652
2656
@@ -2683,7 +2687,7 @@ const path = __importStar(__nccwpck_require__(1017));
2683
2687
const semver = __importStar(__nccwpck_require__(3496));
2684
2688
const util = __importStar(__nccwpck_require__(3837));
2685
2689
const uuid_1 = __nccwpck_require__(1090);
2686
- const constants_1 = __nccwpck_require__(2114 );
2690
+ const constants_1 = __nccwpck_require__(6691 );
2687
2691
// From https://github.com/actions/toolkit/blob/main/packages/tool-cache/src/tool-cache.ts#L23
2688
2692
function createTempDirectory() {
2689
2693
return __awaiter(this, void 0, void 0, function* () {
@@ -2828,7 +2832,7 @@ exports.isGhes = isGhes;
2828
2832
2829
2833
/***/ }),
2830
2834
2831
- /***/ 2114 :
2835
+ /***/ 6691 :
2832
2836
/***/ ((__unused_webpack_module, exports) => {
2833
2837
2834
2838
@@ -2869,7 +2873,7 @@ exports.ManifestFilename = 'manifest.txt';
2869
2873
2870
2874
/***/ }),
2871
2875
2872
- /***/ 6898 :
2876
+ /***/ 5096 :
2873
2877
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
2874
2878
2875
2879
@@ -2897,9 +2901,9 @@ const buffer = __importStar(__nccwpck_require__(4300));
2897
2901
const fs = __importStar(__nccwpck_require__(7147));
2898
2902
const stream = __importStar(__nccwpck_require__(2781));
2899
2903
const util = __importStar(__nccwpck_require__(3837));
2900
- const utils = __importStar(__nccwpck_require__(2707 ));
2901
- const constants_1 = __nccwpck_require__(2114 );
2902
- const requestUtils_1 = __nccwpck_require__(8536 );
2904
+ const utils = __importStar(__nccwpck_require__(5628 ));
2905
+ const constants_1 = __nccwpck_require__(6691 );
2906
+ const requestUtils_1 = __nccwpck_require__(7369 );
2903
2907
const abort_controller_1 = __nccwpck_require__(4992);
2904
2908
/**
2905
2909
* Pipes the body of a HTTP response to a stream
@@ -3126,7 +3130,7 @@ const promiseWithTimeout = (timeoutMs, promise) => __awaiter(void 0, void 0, voi
3126
3130
3127
3131
/***/ }),
3128
3132
3129
- /***/ 8536 :
3133
+ /***/ 7369 :
3130
3134
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
3131
3135
3132
3136
@@ -3149,7 +3153,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
3149
3153
Object.defineProperty(exports, "__esModule", ({ value: true }));
3150
3154
const core = __importStar(__nccwpck_require__(7733));
3151
3155
const http_client_1 = __nccwpck_require__(7794);
3152
- const constants_1 = __nccwpck_require__(2114 );
3156
+ const constants_1 = __nccwpck_require__(6691 );
3153
3157
function isSuccessStatusCode(statusCode) {
3154
3158
if (!statusCode) {
3155
3159
return false;
@@ -3252,7 +3256,7 @@ exports.retryHttpClientResponse = retryHttpClientResponse;
3252
3256
3253
3257
/***/ }),
3254
3258
3255
- /***/ 973 :
3259
+ /***/ 6905 :
3256
3260
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
3257
3261
3258
3262
@@ -3277,8 +3281,8 @@ const exec_1 = __nccwpck_require__(1757);
3277
3281
const io = __importStar(__nccwpck_require__(1318));
3278
3282
const fs_1 = __nccwpck_require__(7147);
3279
3283
const path = __importStar(__nccwpck_require__(1017));
3280
- const utils = __importStar(__nccwpck_require__(2707 ));
3281
- const constants_1 = __nccwpck_require__(2114 );
3284
+ const utils = __importStar(__nccwpck_require__(5628 ));
3285
+ const constants_1 = __nccwpck_require__(6691 );
3282
3286
const IS_WINDOWS = process.platform === 'win32';
3283
3287
// Returns tar path and type: BSD or GNU
3284
3288
function getTarPath() {
@@ -3513,7 +3517,7 @@ exports.createTar = createTar;
3513
3517
3514
3518
/***/ }),
3515
3519
3516
- /***/ 4090 :
3520
+ /***/ 677 :
3517
3521
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
3518
3522
3519
3523
@@ -3559,7 +3563,8 @@ function getDownloadOptions(copy) {
3559
3563
useAzureSdk: true,
3560
3564
downloadConcurrency: 8,
3561
3565
timeoutInMs: 30000,
3562
- segmentTimeoutInMs: 3600000
3566
+ segmentTimeoutInMs: 3600000,
3567
+ lookupOnly: false
3563
3568
};
3564
3569
if (copy) {
3565
3570
if (typeof copy.useAzureSdk === 'boolean') {
@@ -3574,6 +3579,9 @@ function getDownloadOptions(copy) {
3574
3579
if (typeof copy.segmentTimeoutInMs === 'number') {
3575
3580
result.segmentTimeoutInMs = copy.segmentTimeoutInMs;
3576
3581
}
3582
+ if (typeof copy.lookupOnly === 'boolean') {
3583
+ result.lookupOnly = copy.lookupOnly;
3584
+ }
3577
3585
}
3578
3586
const segmentDownloadTimeoutMins = process.env['SEGMENT_DOWNLOAD_TIMEOUT_MINS'];
3579
3587
if (segmentDownloadTimeoutMins &&
@@ -3586,6 +3594,7 @@ function getDownloadOptions(copy) {
3586
3594
core.debug(`Request timeout (ms): ${result.timeoutInMs}`);
3587
3595
core.debug(`Cache segment download timeout mins env var: ${process.env['SEGMENT_DOWNLOAD_TIMEOUT_MINS']}`);
3588
3596
core.debug(`Segment download timeout (ms): ${result.segmentTimeoutInMs}`);
3597
+ core.debug(`Lookup only: ${result.lookupOnly}`);
3589
3598
return result;
3590
3599
}
3591
3600
exports.getDownloadOptions = getDownloadOptions;
@@ -64155,7 +64164,7 @@ __nccwpck_require__.a(__webpack_module__, async (__webpack_handle_async_dependen
64155
64164
/* harmony import */ var _actions_tool_cache__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(514);
64156
64165
/* harmony import */ var _actions_artifact__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(5833);
64157
64166
/* harmony import */ var _actions_core__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(7733);
64158
- /* harmony import */ var _actions_cache__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(4609 );
64167
+ /* harmony import */ var _actions_cache__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(3868 );
64159
64168
64160
64169
64161
64170
@@ -64211,6 +64220,8 @@ switch (wrapperName) {
64211
64220
{
64212
64221
const result = await (0,_actions_cache__WEBPACK_IMPORTED_MODULE_3__.restoreCache)(inputs.Path, inputs.PrimaryKey, inputs.RestoreKey, {
64213
64222
downloadConcurrency: inputs.DownloadConcurrency,
64223
+ lookupOnly: inputs.LookUp,
64224
+ segmentTimeoutInMs: inputs.SegmentTimeout,
64214
64225
timeoutInMs: inputs.Timeout,
64215
64226
useAzureSdk: inputs.UseAzureSdk
64216
64227
}).catch(errorHandle);
0 commit comments