From 14d9168a6b7a08f1a2ee6a36de5148c89077b4a0 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Thu, 31 Mar 2022 00:50:29 +0530 Subject: [PATCH] review comments --- __tests__/util.test.ts | 2 +- dist/cleanup/index.js | 2 +- dist/setup/index.js | 2 +- src/util.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/util.test.ts b/__tests__/util.test.ts index fb1a15ab..659a43b8 100644 --- a/__tests__/util.test.ts +++ b/__tests__/util.test.ts @@ -46,7 +46,7 @@ describe('isCacheFeatureAvailable', () => { jest.spyOn(cache, 'isFeatureAvailable').mockImplementation(() => false); const infoMock = jest.spyOn(core, 'warning'); const message = - 'An internal error has occurred in cache backend. Please check https://www.githubstatus.com/ for any ongoing issue in actions.'; + 'This runner is not configured to use the cache service. Caching will be skipped'; try { process.env['GITHUB_SERVER_URL'] = 'http://github.com'; expect(isCacheFeatureAvailable()).toBe(false); diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 3908dcbd..dbfcf418 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -9225,7 +9225,7 @@ function isCacheFeatureAvailable() { throw new Error('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.'); } 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('This runner is not configured to use the cache service. Caching will be skipped'); } return false; } diff --git a/dist/setup/index.js b/dist/setup/index.js index 51fdf0f8..5bc553b3 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -18851,7 +18851,7 @@ function isCacheFeatureAvailable() { throw new Error('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.'); } 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('This runner is not configured to use the cache service. Caching will be skipped'); } return false; } diff --git a/src/util.ts b/src/util.ts index fbb7b0d3..4ba71b31 100644 --- a/src/util.ts +++ b/src/util.ts @@ -92,7 +92,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.' + 'This runner is not configured to use the cache service. Caching will be skipped' ); }