From bc53ec57f31afff81b1d9b90c35302151a976a35 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Thu, 24 Mar 2022 17:34:39 +0530 Subject: [PATCH] changed tookit --- dist/restore/index.js | 11 ++++------- package-lock.json | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index 7aadcd0..aa18747 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -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(); diff --git a/package-lock.json b/package-lock.json index d21b5df..232649a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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",