mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-05 10:12:55 +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;
|
||||
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
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue