diff --git a/lib/entry-points.js b/lib/entry-points.js index cbeec24780..a165a9b3b1 100644 --- a/lib/entry-points.js +++ b/lib/entry-points.js @@ -146768,9 +146768,10 @@ async function getGitHubVersionFromApi(apiClient, apiDetails) { } async function getGitHubVersion() { if (cachedGitHubVersion === void 0) { + const apiDetails = getApiDetails(); cachedGitHubVersion = await getGitHubVersionFromApi( - getApiClient(), - getApiDetails() + createApiClientWithDetails(apiDetails), + apiDetails ); } return cachedGitHubVersion; @@ -164199,12 +164200,6 @@ async function runWrapper9() { logger.info( "Debug mode is on. Uploading proxy log as Actions debugging artifact..." ); - if (config?.gitHubVersion.type === void 0) { - logger.warning( - `Did not upload debug artifacts because cannot determine the GitHub variant running.` - ); - return; - } const gitHubVersion = await getGitHubVersion(); checkGitHubVersionInRange(gitHubVersion, logger); await uploadArtifacts( diff --git a/src/api-client.ts b/src/api-client.ts index bc6018877e..e509f5eea0 100644 --- a/src/api-client.ts +++ b/src/api-client.ts @@ -249,9 +249,10 @@ export async function getGitHubVersionFromApi( */ export async function getGitHubVersion(): Promise { if (cachedGitHubVersion === undefined) { + const apiDetails = getApiDetails(); cachedGitHubVersion = await getGitHubVersionFromApi( - getApiClient(), - getApiDetails(), + createApiClientWithDetails(apiDetails), + apiDetails, ); } return cachedGitHubVersion; diff --git a/src/start-proxy-action-post.ts b/src/start-proxy-action-post.ts index d300d528b6..c872207ac0 100644 --- a/src/start-proxy-action-post.ts +++ b/src/start-proxy-action-post.ts @@ -38,12 +38,6 @@ export async function runWrapper() { logger.info( "Debug mode is on. Uploading proxy log as Actions debugging artifact...", ); - if (config?.gitHubVersion.type === undefined) { - logger.warning( - `Did not upload debug artifacts because cannot determine the GitHub variant running.`, - ); - return; - } const gitHubVersion = await getGitHubVersion(); checkGitHubVersionInRange(gitHubVersion, logger);