mirror of
https://github.com/actions/cache.git
synced 2025-04-22 03:56:45 +00:00
changed tookit
This commit is contained in:
parent
234b8019b9
commit
bc53ec57f3
2 changed files with 6 additions and 9 deletions
11
dist/restore/index.js
vendored
11
dist/restore/index.js
vendored
|
@ -1200,10 +1200,7 @@ function assertDefined(name, value) {
|
|||
}
|
||||
exports.assertDefined = assertDefined;
|
||||
function isFeatureAvailable() {
|
||||
if (process.env['ACTIONS_CACHE_URL']) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return !!process.env['ACTIONS_CACHE_URL'];
|
||||
}
|
||||
exports.isFeatureAvailable = isFeatureAvailable;
|
||||
//# sourceMappingURL=cacheUtils.js.map
|
||||
|
@ -37532,7 +37529,7 @@ exports.getInputAsInt = getInputAsInt;
|
|||
function isCacheFeatureAvailable() {
|
||||
if (!cache.isFeatureAvailable()) {
|
||||
if (isGhes()) {
|
||||
logWarning("Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if ArtifactCache service is enabled or not.");
|
||||
logWarning("Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.");
|
||||
}
|
||||
else {
|
||||
logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
|
||||
|
@ -46458,9 +46455,9 @@ function checkKey(key) {
|
|||
}
|
||||
}
|
||||
/**
|
||||
* isFeatureAvailable to check the presence of Artifact cache service
|
||||
* isFeatureAvailable to check the presence of Actions cache service
|
||||
*
|
||||
* @returns boolean return true if Artifact cache service is available, otherwise false
|
||||
* @returns boolean return true if Actions cache service feature is available, otherwise false
|
||||
*/
|
||||
function isFeatureAvailable() {
|
||||
return utils.isFeatureAvailable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue