mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 07:22:14 +00:00
format check
This commit is contained in:
parent
0c2c19bbf0
commit
e6ed85bb3a
1 changed files with 6 additions and 2 deletions
|
@ -14,9 +14,13 @@ function isPyPyVersion(versionSpec: string) {
|
||||||
async function cacheDependencies(cache: string, pythonVersion: string) {
|
async function cacheDependencies(cache: string, pythonVersion: string) {
|
||||||
if (!actionsCache.isFeatureAvailable()) {
|
if (!actionsCache.isFeatureAvailable()) {
|
||||||
if (isGhes()) {
|
if (isGhes()) {
|
||||||
throw new Error('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.');
|
throw new Error(
|
||||||
|
'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 {
|
} else {
|
||||||
throw new Error('An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.');
|
throw new Error(
|
||||||
|
'An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const cacheDependencyPath =
|
const cacheDependencyPath =
|
||||||
|
|
Loading…
Add table
Reference in a new issue