mirror of
https://github.com/actions/cache.git
synced 2026-09-30 16:48:53 +00:00
review comments and updated test cases
This commit is contained in:
1 parent
1a306b5b35
commit
c29e204c9f
8 files changed
+209
-348
No files matched your search
+1
-12
@@ -11,18 +11,7 @@ process.on("uncaughtException", e => utils.logWarning(e.message));
|
||||
|
||||
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."
|
||||
);
|
||||
}
|
||||
utils.setCacheHitOutput(false);
|
||||
if (!utils.isCacheFeatureAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user