mirror of
https://github.com/actions/setup-python.git
synced 2025-07-26 08:58:21 +02:00
review comments
This commit is contained in:
parent
d46988a476
commit
c5c30f5757
3 changed files with 15 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue