Skip to content

Commit

Permalink
Bump @actions/cache version to 3.2.213
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 30, 2024
1 parent 197d81e commit beb23e2
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
6 changes: 4 additions & 2 deletions dist/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ function getCacheEntryUsingCacheMgr(keys, paths, destinationPath, options) {
}
exports.getCacheEntryUsingCacheMgr = getCacheEntryUsingCacheMgr;
function getCacheEntry(keys, paths, options) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
const resource = `?keys=${encodeURIComponent(keys.join(','))}&version=${version}`;
Expand All @@ -741,7 +742,7 @@ function getCacheEntry(keys, paths, options) {
Accept: createAcceptHeader('application/json', '6.0-preview.1'),
'X-Github-Repo-Name': process.env['GITHUB_REPO_NAME'],
Authorization: `Bearer ${process.env['BLACKSMITH_CACHE_TOKEN']}`,
'X-Cache-Region': process.env['BLACKSMITH_REGION']
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
},
timeout: 3000 // 3 seconds timeout
});
Expand Down Expand Up @@ -849,8 +850,9 @@ function reserveCache(key, paths, options) {
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
};
const response = yield (0, requestUtils_1.retryTypedResponse)('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
var _a;
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest, {
'X-Cache-Region': process.env['BLACKSMITH_REGION']
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
});
}));
return response;
Expand Down
2 changes: 1 addition & 1 deletion dist/main/index.js.map

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ function getCacheEntryUsingCacheMgr(keys, paths, destinationPath, options) {
}
exports.getCacheEntryUsingCacheMgr = getCacheEntryUsingCacheMgr;
function getCacheEntry(keys, paths, options) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
const resource = `?keys=${encodeURIComponent(keys.join(','))}&version=${version}`;
Expand All @@ -741,7 +742,7 @@ function getCacheEntry(keys, paths, options) {
Accept: createAcceptHeader('application/json', '6.0-preview.1'),
'X-Github-Repo-Name': process.env['GITHUB_REPO_NAME'],
Authorization: `Bearer ${process.env['BLACKSMITH_CACHE_TOKEN']}`,
'X-Cache-Region': process.env['BLACKSMITH_REGION']
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
},
timeout: 3000 // 3 seconds timeout
});
Expand Down Expand Up @@ -849,8 +850,9 @@ function reserveCache(key, paths, options) {
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
};
const response = yield (0, requestUtils_1.retryTypedResponse)('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
var _a;
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest, {
'X-Cache-Region': process.env['BLACKSMITH_REGION']
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
});
}));
return response;
Expand Down
2 changes: 1 addition & 1 deletion dist/post/index.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 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 @@ -13,7 +13,7 @@
"author": "Alex Rodionov <[email protected]>",
"license": "MIT",
"dependencies": {
"@actions/cache": "npm:@useblacksmith/[email protected].212",
"@actions/cache": "npm:@useblacksmith/[email protected].213",
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@actions/glob": "^0.5.0",
Expand Down

0 comments on commit beb23e2

Please sign in to comment.