From f477cc30e8b87333d24bfa0e9ddf897a5d5cb6ec Mon Sep 17 00:00:00 2001 From: Shubham Tiwari <64764738+tiwarishub@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:48:50 +0530 Subject: [PATCH 1/3] Update src/utils.ts Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com> --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 8f9b75f9..acbf75e0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -105,7 +105,7 @@ export function isCacheFeatureAvailable(): boolean { if (!cache.isFeatureAvailable()) { 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.' + '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 { throw new Error( From f3f9e751816636eaff419c0f8b53a9cecd87dfd2 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari <64764738+tiwarishub@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:49:34 +0530 Subject: [PATCH 2/3] Update utils.ts --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index acbf75e0..41e35c34 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -105,7 +105,7 @@ export function isCacheFeatureAvailable(): boolean { if (!cache.isFeatureAvailable()) { if (isGhes()) { 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.' + '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 { throw new Error( From 74a60ed37c3b803e3dacf8a9a24b372b218ebe12 Mon Sep 17 00:00:00 2001 From: Shubham Tiwari <64764738+tiwarishub@users.noreply.github.com> Date: Wed, 30 Mar 2022 00:50:15 +0530 Subject: [PATCH 3/3] Update utils.test.ts --- __tests__/utils.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts index 9c764ffe..5fddef35 100644 --- a/__tests__/utils.test.ts +++ b/__tests__/utils.test.ts @@ -46,7 +46,7 @@ describe('isCacheFeatureAvailable', () => { } catch (error) { expect(error).toHaveProperty( 'message', - '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.' + '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.' ); } finally { delete process.env['GITHUB_SERVER_URL'];