mirror of
https://gitea.com/actions/cache.git
synced 2025-08-24 20:49:26 +08:00
review comments and updated test cases
This commit is contained in:
@@ -6,17 +6,7 @@ import * as utils from "./utils/actionUtils";
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
if (!cache.isAvailable()) {
|
||||
if (utils.isGhes()){
|
||||
utils.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."
|
||||
);
|
||||
}
|
||||
else{
|
||||
utils.logWarning(
|
||||
"Something is going wrong with ArtifactCache service which supports cache actions. Please check https://www.githubstatus.com/ for any ongoing issue in actions."
|
||||
);
|
||||
}
|
||||
if (!utils.isCacheFeatureAvailable()) {
|
||||
utils.setCacheHitOutput(false);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user