mirror of
https://github.com/actions/cache.git
synced 2024-11-23 02:11:27 +01: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;
|
exports.assertDefined = assertDefined;
|
||||||
function isFeatureAvailable() {
|
function isFeatureAvailable() {
|
||||||
if (process.env['ACTIONS_CACHE_URL']) {
|
return !!process.env['ACTIONS_CACHE_URL'];
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
exports.isFeatureAvailable = isFeatureAvailable;
|
exports.isFeatureAvailable = isFeatureAvailable;
|
||||||
//# sourceMappingURL=cacheUtils.js.map
|
//# sourceMappingURL=cacheUtils.js.map
|
||||||
|
@ -37532,7 +37529,7 @@ exports.getInputAsInt = getInputAsInt;
|
||||||
function isCacheFeatureAvailable() {
|
function isCacheFeatureAvailable() {
|
||||||
if (!cache.isFeatureAvailable()) {
|
if (!cache.isFeatureAvailable()) {
|
||||||
if (isGhes()) {
|
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 {
|
else {
|
||||||
logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
|
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() {
|
function isFeatureAvailable() {
|
||||||
return utils.isFeatureAvailable();
|
return utils.isFeatureAvailable();
|
||||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -38,7 +38,7 @@
|
||||||
"node_modules/@actions/cache": {
|
"node_modules/@actions/cache": {
|
||||||
"version": "1.0.11",
|
"version": "1.0.11",
|
||||||
"resolved": "file:actions-cache-1.0.11.tgz",
|
"resolved": "file:actions-cache-1.0.11.tgz",
|
||||||
"integrity": "sha512-NbENIYGK1amB9mQL3q6eFMLYPOD6myT8UAJevFcQ3HBpHFpgk3BK3WMIp8kwe38GAGe0bo58sP7WoNPHiod+Fg==",
|
"integrity": "sha512-75iLe49HLOPVcHtRUkmyRgYIw8dn0FpHnFSUx/priDggh/QwewM5583a+5JappQBThOhTF/nSVIEbozIIf19Ng==",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
|
@ -7301,7 +7301,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/cache": {
|
"@actions/cache": {
|
||||||
"version": "file:actions-cache-1.0.11.tgz",
|
"version": "file:actions-cache-1.0.11.tgz",
|
||||||
"integrity": "sha512-NbENIYGK1amB9mQL3q6eFMLYPOD6myT8UAJevFcQ3HBpHFpgk3BK3WMIp8kwe38GAGe0bo58sP7WoNPHiod+Fg==",
|
"integrity": "sha512-75iLe49HLOPVcHtRUkmyRgYIw8dn0FpHnFSUx/priDggh/QwewM5583a+5JappQBThOhTF/nSVIEbozIIf19Ng==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
"@actions/exec": "^1.0.1",
|
"@actions/exec": "^1.0.1",
|
||||||
|
|
Loading…
Reference in a new issue