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
'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.'
`::error::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.${osm.EOL}`
731
+
expect(warningSpy).toHaveBeenCalledWith(
732
+
// `::error::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.${osm.EOL}`
733
+
'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.'
Copy file name to clipboardExpand all lines: dist/cache-save/index.js
+4-2
Original file line number
Diff line number
Diff line change
@@ -61187,8 +61187,10 @@ exports.isGhes = isGhes;
61187
61187
function isCacheFeatureAvailable() {
61188
61188
if (cache.isFeatureAvailable())
61189
61189
return true;
61190
-
if (isGhes())
61191
-
throw new Error('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.');
61190
+
if (isGhes()) {
61191
+
core.warning('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.');
61192
+
return false;
61193
+
}
61192
61194
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
Copy file name to clipboardExpand all lines: dist/setup/index.js
+4-2
Original file line number
Diff line number
Diff line change
@@ -73141,8 +73141,10 @@ exports.isGhes = isGhes;
73141
73141
function isCacheFeatureAvailable() {
73142
73142
if (cache.isFeatureAvailable())
73143
73143
return true;
73144
-
if (isGhes())
73145
-
throw new Error('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.');
73144
+
if (isGhes()) {
73145
+
core.warning('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.');
73146
+
return false;
73147
+
}
73146
73148
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
Copy file name to clipboardExpand all lines: src/cache-utils.ts
+4-2
Original file line number
Diff line number
Diff line change
@@ -107,10 +107,12 @@ export function isGhes(): boolean {
107
107
exportfunctionisCacheFeatureAvailable(): boolean{
108
108
if(cache.isFeatureAvailable())returntrue;
109
109
110
-
if(isGhes())
111
-
thrownewError(
110
+
if(isGhes()){
111
+
core.warning(
112
112
'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.'
113
113
);
114
+
returnfalse;
115
+
}
114
116
115
117
core.warning(
116
118
'The runner was not able to contact the cache service. Caching will be skipped'
0 commit comments