This commit is contained in:
ddivad195
2024-03-05 16:51:22 +00:00
parent 9c9b57d4d4
commit 05bd356814
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ function configureEventContext(): void {
process.env.GITHUB_API_URL = 'apiBaseUrl' process.env.GITHUB_API_URL = 'apiBaseUrl'
process.env.RUNNER_TEMP = 'runnerTempDir' process.env.RUNNER_TEMP = 'runnerTempDir'
process.env.GITHUB_SHA = 'sha' 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_ID = 'repositoryId'
process.env.GITHUB_REPOSITORY_OWNER_ID = 'repositoryOwnerId' process.env.GITHUB_REPOSITORY_OWNER_ID = 'repositoryOwnerId'
github.context.eventName = 'release' github.context.eventName = 'release'
Generated Vendored
+1 -1
View File
@@ -128230,7 +128230,7 @@ async function resolvePublishActionOptions() {
} }
// Required Values fetched from the GitHub API // Required Values fetched from the GitHub API
const containerRegistryUrl = await iaToolkit.getContainerRegistryURL(apiBaseUrl); const containerRegistryUrl = await iaToolkit.getContainerRegistryURL(apiBaseUrl);
const isEnterprise = !githubServerUrl.endsWith('.github.com') && const isEnterprise = !githubServerUrl.includes('https://github.com') &&
!githubServerUrl.endsWith('.ghe.com'); !githubServerUrl.endsWith('.ghe.com');
return { return {
event, event,
+1 -1
View File
@@ -94,7 +94,7 @@ export async function resolvePublishActionOptions(): Promise<PublishActionOption
await iaToolkit.getContainerRegistryURL(apiBaseUrl) await iaToolkit.getContainerRegistryURL(apiBaseUrl)
const isEnterprise = const isEnterprise =
!githubServerUrl.endsWith('.github.com') && !githubServerUrl.includes('https://github.com') &&
!githubServerUrl.endsWith('.ghe.com') !githubServerUrl.endsWith('.ghe.com')
return { return {