fix: Replace throw with warn

Signed-off-by: jongwooo <jongwooo.han@gmail.com>
This commit is contained in:
jongwooo 2022-12-15 23:03:42 +09:00
parent 8606abc738
commit 13964fee2c
3 changed files with 9 additions and 8 deletions

View file

@ -110,9 +110,10 @@ export function isCacheFeatureAvailable(): boolean {
}
if (isGhes()) {
throw new Error(
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.'
);
return false;
}
core.warning(