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/cleanup/index.js
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -68708,16 +68708,15 @@ function isGhes() {
68708
68708
}
68709
68709
exports.isGhes = isGhes;
68710
68710
function isCacheFeatureAvailable() {
68711
-
if (!cache.isFeatureAvailable()) {
68712
-
if (isGhes()) {
68713
-
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.');
68714
-
}
68715
-
else {
68716
-
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
68717
-
}
68711
+
if (cache.isFeatureAvailable()) {
68712
+
return true;
68713
+
}
68714
+
if (isGhes()) {
68715
+
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.');
68718
68716
return false;
68719
68717
}
68720
-
return true;
68718
+
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
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -105436,16 +105436,15 @@ function isGhes() {
105436
105436
}
105437
105437
exports.isGhes = isGhes;
105438
105438
function isCacheFeatureAvailable() {
105439
-
if (!cache.isFeatureAvailable()) {
105440
-
if (isGhes()) {
105441
-
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.');
105442
-
}
105443
-
else {
105444
-
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
105445
-
}
105439
+
if (cache.isFeatureAvailable()) {
105440
+
return true;
105441
+
}
105442
+
if (isGhes()) {
105443
+
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.');
105446
105444
return false;
105447
105445
}
105448
-
return true;
105446
+
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
Copy file name to clipboardExpand all lines: src/util.ts
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -85,19 +85,19 @@ export function isGhes(): boolean {
85
85
}
86
86
87
87
exportfunctionisCacheFeatureAvailable(): boolean{
88
-
if(!cache.isFeatureAvailable()){
89
-
if(isGhes()){
90
-
thrownewError(
91
-
'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.'
92
-
);
93
-
}else{
94
-
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
95
-
}
88
+
if(cache.isFeatureAvailable()){
89
+
returntrue;
90
+
}
96
91
92
+
if(isGhes()){
93
+
core.warning(
94
+
'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.'
95
+
);
97
96
returnfalse;
98
97
}
99
98
100
-
returntrue;
99
+
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
0 commit comments