Skip to content

Commit

Permalink
changed tookit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Tiwari committed Mar 24, 2022
1 parent 234b801 commit bc53ec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.");
Expand Down Expand Up @@ -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();
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.

0 comments on commit bc53ec5

Please sign in to comment.