From 05bd3568142471f04af484ffb80dbb9d8fc147c3 Mon Sep 17 00:00:00 2001 From: ddivad195 Date: Tue, 5 Mar 2024 16:51:22 +0000 Subject: [PATCH] fix test --- __tests__/config.test.ts | 2 +- dist/index.js | 2 +- src/config.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/config.test.ts b/__tests__/config.test.ts index c6b0eb7..8fbe2d5 100644 --- a/__tests__/config.test.ts +++ b/__tests__/config.test.ts @@ -230,7 +230,7 @@ function configureEventContext(): void { process.env.GITHUB_API_URL = 'apiBaseUrl' process.env.RUNNER_TEMP = 'runnerTempDir' process.env.GITHUB_SHA = 'sha' - process.env.GITHUB_SERVER_URL = 'github.com' + process.env.GITHUB_SERVER_URL = 'https://github.com/' process.env.GITHUB_REPOSITORY_ID = 'repositoryId' process.env.GITHUB_REPOSITORY_OWNER_ID = 'repositoryOwnerId' github.context.eventName = 'release' diff --git a/dist/index.js b/dist/index.js index 472a75c..9ec1b06 100644 --- a/dist/index.js +++ b/dist/index.js @@ -128230,7 +128230,7 @@ async function resolvePublishActionOptions() { } // Required Values fetched from the GitHub API const containerRegistryUrl = await iaToolkit.getContainerRegistryURL(apiBaseUrl); - const isEnterprise = !githubServerUrl.endsWith('.github.com') && + const isEnterprise = !githubServerUrl.includes('https://github.com') && !githubServerUrl.endsWith('.ghe.com'); return { event, diff --git a/src/config.ts b/src/config.ts index 0115080..a4df516 100644 --- a/src/config.ts +++ b/src/config.ts @@ -94,7 +94,7 @@ export async function resolvePublishActionOptions(): Promise