You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.';
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.'
Copy file name to clipboardExpand all lines: dist/setup/index.js
+7-8
Original file line number
Diff line number
Diff line change
@@ -67057,16 +67057,15 @@ function isGhes() {
67057
67057
}
67058
67058
exports.isGhes = isGhes;
67059
67059
function isCacheFeatureAvailable() {
67060
-
if (!cache.isFeatureAvailable()) {
67061
-
if (isGhes()) {
67062
-
throw new Error('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
67063
-
}
67064
-
else {
67065
-
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
67066
-
}
67060
+
if (cache.isFeatureAvailable()) {
67061
+
return true;
67062
+
}
67063
+
if (isGhes()) {
67064
+
core.warning('Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.');
67067
67065
return false;
67068
67066
}
67069
-
return true;
67067
+
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
Copy file name to clipboardExpand all lines: src/utils.ts
+11-11
Original file line number
Diff line number
Diff line change
@@ -105,21 +105,21 @@ export function isGhes(): boolean {
105
105
}
106
106
107
107
exportfunctionisCacheFeatureAvailable(): boolean{
108
-
if(!cache.isFeatureAvailable()){
109
-
if(isGhes()){
110
-
thrownewError(
111
-
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.'
112
-
);
113
-
}else{
114
-
core.warning(
115
-
'The runner was not able to contact the cache service. Caching will be skipped'
116
-
);
117
-
}
108
+
if(cache.isFeatureAvailable()){
109
+
returntrue;
110
+
}
118
111
112
+
if(isGhes()){
113
+
core.warning(
114
+
'Caching is only supported on GHES version >= 3.5. If you are on a version >= 3.5, please check with your GHES admin if the Actions cache service is enabled or not.'
115
+
);
119
116
returnfalse;
120
117
}
121
118
122
-
returntrue;
119
+
core.warning(
120
+
'The runner was not able to contact the cache service. Caching will be skipped'
0 commit comments