From fc72fbdb56938454d3911c78a4066c1a9a2ac3bc Mon Sep 17 00:00:00 2001 From: Shubham Tiwari Date: Thu, 31 Mar 2022 00:44:59 +0530 Subject: [PATCH] Review comment --- __tests__/utils.test.ts | 2 +- dist/setup/index.js | 2 +- src/utils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts index 009031a2..04ec7c51 100644 --- a/__tests__/utils.test.ts +++ b/__tests__/utils.test.ts @@ -59,7 +59,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.'; + 'The runner was not able to contact the cache service. Caching will be skipped'; try { process.env['GITHUB_SERVER_URL'] = 'http://github.com'; expect(isCacheFeatureAvailable()).toBe(false); diff --git a/dist/setup/index.js b/dist/setup/index.js index e829736d..a7cd95a3 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -5679,7 +5679,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('The runner was not able to contact the cache service. Caching will be skipped'); } return false; } diff --git a/src/utils.ts b/src/utils.ts index 4d8ffe95..eb3a1ba6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -110,7 +110,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' ); }