changed tookit

This commit is contained in:
Shubham Tiwari 2022-03-24 17:34:39 +05:30
parent 234b8019b9
commit bc53ec57f3
2 changed files with 6 additions and 9 deletions

11
dist/restore/index.js vendored
View file

@ -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();

4
package-lock.json generated
View file

@ -38,7 +38,7 @@
"node_modules/@actions/cache": {
"version": "1.0.11",
"resolved": "file:actions-cache-1.0.11.tgz",
"integrity": "sha512-NbENIYGK1amB9mQL3q6eFMLYPOD6myT8UAJevFcQ3HBpHFpgk3BK3WMIp8kwe38GAGe0bo58sP7WoNPHiod+Fg==",
"integrity": "sha512-75iLe49HLOPVcHtRUkmyRgYIw8dn0FpHnFSUx/priDggh/QwewM5583a+5JappQBThOhTF/nSVIEbozIIf19Ng==",
"license": "MIT",
"dependencies": {
"@actions/core": "^1.2.6",
@ -7301,7 +7301,7 @@
"dependencies": {
"@actions/cache": {
"version": "file:actions-cache-1.0.11.tgz",
"integrity": "sha512-NbENIYGK1amB9mQL3q6eFMLYPOD6myT8UAJevFcQ3HBpHFpgk3BK3WMIp8kwe38GAGe0bo58sP7WoNPHiod+Fg==",
"integrity": "sha512-75iLe49HLOPVcHtRUkmyRgYIw8dn0FpHnFSUx/priDggh/QwewM5583a+5JappQBThOhTF/nSVIEbozIIf19Ng==",
"requires": {
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.1",