Skip to content

Commit

Permalink
console res
Browse files Browse the repository at this point in the history
  • Loading branch information
Apple authored and Apple committed Mar 31, 2022
1 parent fa608b2 commit 8546a70
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
9 changes: 5 additions & 4 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3278,10 +3278,9 @@ function reserveCache(key, paths, options) {
version,
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
};
const response = yield requestUtils_1.retryHttpClientResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
return httpClient.post(getCacheApiUrl('caches'), JSON.stringify(reserveCacheRequest));
const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
}));
console.log("\n\nResponse\n\n");
console.log(response);
return response;
});
Expand Down Expand Up @@ -51566,7 +51565,9 @@ function retryTypedResponse(name, method, maxAttempts = constants_1.DefaultRetry
return {
statusCode: error.statusCode,
result: null,
headers: {}
headers: {},
message: error.message,
typeKey: error.result
};
}
else {
Expand Down
9 changes: 5 additions & 4 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3278,10 +3278,9 @@ function reserveCache(key, paths, options) {
version,
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
};
const response = yield requestUtils_1.retryHttpClientResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
return httpClient.post(getCacheApiUrl('caches'), JSON.stringify(reserveCacheRequest));
const response = yield requestUtils_1.retryTypedResponse('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest);
}));
console.log("\n\nResponse\n\n");
console.log(response);
return response;
});
Expand Down Expand Up @@ -51569,7 +51568,9 @@ function retryTypedResponse(name, method, maxAttempts = constants_1.DefaultRetry
return {
statusCode: error.statusCode,
result: null,
headers: {}
headers: {},
message: error.message,
typeKey: error.result
};
}
else {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"author": "GitHub",
"license": "MIT",
"dependencies": {
"@actions/cache": "file:actions-cache-2.5.0.tgz",
"@actions/cache": "file:actions-cache-2.6.0.tgz",
"@actions/core": "^1.2.6",
"@actions/exec": "^1.1.1",
"@actions/io": "^1.1.2"
Expand Down

0 comments on commit 8546a70

Please sign in to comment.