review comments

This commit is contained in:
Shubham Tiwari 2022-03-30 01:04:37 +05:30
parent d46988a476
commit c5c30f5757
3 changed files with 15 additions and 9 deletions

View file

@ -1,4 +1,5 @@
import * as cache from '@actions/cache';
import * as core from '@actions/core';
import fs from 'fs';
import * as path from 'path';
import * as semver from 'semver';
@ -108,10 +109,12 @@ export function isCacheFeatureAvailable(): boolean {
'Caching 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.'
);
} else {
throw new Error(
core.warning(
'An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.'
);
}
return false;
}
return true;