fix warning for internal errors

This commit is contained in:
Dmitry Shibanov 2022-03-31 11:47:31 +02:00
parent 8a5e1b59e0
commit fea0c2a691
5 changed files with 5 additions and 5 deletions

View file

@ -56,7 +56,7 @@ describe('cache-utils', () => {
process.env['GITHUB_SERVER_URL'] = '';
isCacheFeatureAvailable();
expect(warningSpy).toHaveBeenCalledWith(
'An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.'
'The runner was not able to contact the cache service. Caching will be skipped'
);
});

View file

@ -687,7 +687,7 @@ describe('setup-node', () => {
await main.run();
expect(warningSpy).toHaveBeenCalledWith(
'An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.'
'The runner was not able to contact the cache service. Caching will be skipped'
);
});
});

View file

@ -3884,7 +3884,7 @@ function isCacheFeatureAvailable() {
throw new Error('Cache action 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 {
core.warning('An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.');
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
}
return false;
}

2
dist/setup/index.js vendored
View file

@ -46137,7 +46137,7 @@ function isCacheFeatureAvailable() {
throw new Error('Cache action 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 {
core.warning('An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.');
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
}
return false;
}

View file

@ -112,7 +112,7 @@ export function isCacheFeatureAvailable(): boolean {
);
} else {
core.warning(
'An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.'
'The runner was not able to contact the cache service. Caching will be skipped'
);
}