Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

Commit 81b2403

Browse files
authored
Merge pull request #7 from useblacksmith/bump-cache-version-3.2.213-20241030223630
Bump @actions/cache version to 3.2.213
2 parents 694949e + dcb80e7 commit 81b2403

4 files changed

Lines changed: 13 additions & 9 deletions

File tree

‎dist/cache-save/index.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ function getCacheEntryUsingCacheMgr(keys, paths, destinationPath, options) {
566566
}
567567
exports.getCacheEntryUsingCacheMgr = getCacheEntryUsingCacheMgr;
568568
function getCacheEntry(keys, paths, options) {
569+
var _a;
569570
return __awaiter(this, void 0, void 0, function* () {
570571
const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
571572
const resource = `?keys=${encodeURIComponent(keys.join(','))}&version=${version}`;
@@ -580,7 +581,7 @@ function getCacheEntry(keys, paths, options) {
580581
Accept: createAcceptHeader('application/json', '6.0-preview.1'),
581582
'X-Github-Repo-Name': process.env['GITHUB_REPO_NAME'],
582583
Authorization: `Bearer ${process.env['BLACKSMITH_CACHE_TOKEN']}`,
583-
'X-Cache-Region': process.env['BLACKSMITH_REGION']
584+
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
584585
},
585586
timeout: 3000 // 3 seconds timeout
586587
});
@@ -688,8 +689,9 @@ function reserveCache(key, paths, options) {
688689
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
689690
};
690691
const response = yield (0, requestUtils_1.retryTypedResponse)('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
692+
var _a;
691693
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest, {
692-
'X-Cache-Region': process.env['BLACKSMITH_REGION']
694+
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
693695
});
694696
}));
695697
return response;

‎dist/setup/index.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ function getCacheEntryUsingCacheMgr(keys, paths, destinationPath, options) {
566566
}
567567
exports.getCacheEntryUsingCacheMgr = getCacheEntryUsingCacheMgr;
568568
function getCacheEntry(keys, paths, options) {
569+
var _a;
569570
return __awaiter(this, void 0, void 0, function* () {
570571
const version = getCacheVersion(paths, options === null || options === void 0 ? void 0 : options.compressionMethod, options === null || options === void 0 ? void 0 : options.enableCrossOsArchive);
571572
const resource = `?keys=${encodeURIComponent(keys.join(','))}&version=${version}`;
@@ -580,7 +581,7 @@ function getCacheEntry(keys, paths, options) {
580581
Accept: createAcceptHeader('application/json', '6.0-preview.1'),
581582
'X-Github-Repo-Name': process.env['GITHUB_REPO_NAME'],
582583
Authorization: `Bearer ${process.env['BLACKSMITH_CACHE_TOKEN']}`,
583-
'X-Cache-Region': process.env['BLACKSMITH_REGION']
584+
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
584585
},
585586
timeout: 3000 // 3 seconds timeout
586587
});
@@ -688,8 +689,9 @@ function reserveCache(key, paths, options) {
688689
cacheSize: options === null || options === void 0 ? void 0 : options.cacheSize
689690
};
690691
const response = yield (0, requestUtils_1.retryTypedResponse)('reserveCache', () => __awaiter(this, void 0, void 0, function* () {
692+
var _a;
691693
return httpClient.postJson(getCacheApiUrl('caches'), reserveCacheRequest, {
692-
'X-Cache-Region': process.env['BLACKSMITH_REGION']
694+
'X-Cache-Region': (_a = process.env['BLACKSMITH_REGION']) !== null && _a !== void 0 ? _a : 'eu-central'
693695
});
694696
}));
695697
return response;

‎package-lock.json‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"author": "GitHub",
2626
"license": "MIT",
2727
"dependencies": {
28-
"@actions/cache": "npm:@useblacksmith/cache@3.2.212",
28+
"@actions/cache": "npm:@useblacksmith/cache@3.2.213",
2929
"@actions/core": "^1.10.0",
3030
"@actions/exec": "^1.1.0",
3131
"@actions/glob": "^0.4.0",

0 commit comments

Comments
 (0)