fix test
This commit is contained in:
@@ -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'
|
||||
|
||||
+1
-1
@@ -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,
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ export async function resolvePublishActionOptions(): Promise<PublishActionOption
|
||||
await iaToolkit.getContainerRegistryURL(apiBaseUrl)
|
||||
|
||||
const isEnterprise =
|
||||
!githubServerUrl.endsWith('.github.com') &&
|
||||
!githubServerUrl.includes('https://github.com') &&
|
||||
!githubServerUrl.endsWith('.ghe.com')
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user