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
Copy file name to clipboardExpand all lines: dist/restore/index.js
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -38489,17 +38489,16 @@ function getInputAsInt(name, options) {
38489
38489
}
38490
38490
exports.getInputAsInt = getInputAsInt;
38491
38491
function isCacheFeatureAvailable() {
38492
-
if (!cache.isFeatureAvailable()) {
38493
-
if (isGhes()) {
38494
-
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.
38492
+
if (cache.isFeatureAvailable()) {
38493
+
return true;
38494
+
}
38495
+
if (isGhes()) {
38496
+
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.
38495
38497
Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github Connect, please unretire the actions/cache namespace before upgrade (see https://docs.github.com/en/enterprise-server@3.5/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)`);
38496
-
}
38497
-
else {
38498
-
logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
38499
-
}
38500
38498
return false;
38501
38499
}
38502
-
return true;
38500
+
logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
Copy file name to clipboardExpand all lines: dist/save/index.js
+7-8Lines changed: 7 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -38489,17 +38489,16 @@ function getInputAsInt(name, options) {
38489
38489
}
38490
38490
exports.getInputAsInt = getInputAsInt;
38491
38491
function isCacheFeatureAvailable() {
38492
-
if (!cache.isFeatureAvailable()) {
38493
-
if (isGhes()) {
38494
-
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.
38492
+
if (cache.isFeatureAvailable()) {
38493
+
return true;
38494
+
}
38495
+
if (isGhes()) {
38496
+
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.
38495
38497
Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github Connect, please unretire the actions/cache namespace before upgrade (see https://docs.github.com/en/enterprise-server@3.5/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)`);
38496
-
}
38497
-
else {
38498
-
logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
38499
-
}
38500
38498
return false;
38501
38499
}
38502
-
return true;
38500
+
logWarning("An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.");
Copy file name to clipboardExpand all lines: src/utils/actionUtils.ts
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -77,19 +77,20 @@ export function getInputAsInt(
77
77
}
78
78
79
79
exportfunctionisCacheFeatureAvailable(): boolean{
80
-
if(!cache.isFeatureAvailable()){
81
-
if(isGhes()){
82
-
logWarning(
83
-
`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.
80
+
if(cache.isFeatureAvailable()){
81
+
returntrue;
82
+
}
83
+
84
+
if(isGhes()){
85
+
logWarning(
86
+
`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.
84
87
Otherwise please upgrade to GHES version >= 3.5 and If you are also using Github Connect, please unretire the actions/cache namespace before upgrade (see https://docs.github.com/en/enterprise-server@3.5/admin/github-actions/managing-access-to-actions-from-githubcom/enabling-automatic-access-to-githubcom-actions-using-github-connect#automatic-retirement-of-namespaces-for-actions-accessed-on-githubcom)`
85
-
);
86
-
}else{
87
-
logWarning(
88
-
"An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions."
89
-
);
90
-
}
88
+
);
91
89
returnfalse;
92
90
}
93
91
94
-
returntrue;
92
+
logWarning(
93
+
"An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions."
0 commit comments