Merge pull request #4176 from github/mbg/start-proxy/improve-post-githubversion-logic

Remove unnecessary check in `start-proxy-action-post`
This commit is contained in:
Michael B. Gale
2026-09-25 14:39:40 +00:00
committed by GitHub
3 changed files with 6 additions and 16 deletions

11
lib/entry-points.js generated
View File

@@ -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(

View File

@@ -249,9 +249,10 @@ export async function getGitHubVersionFromApi(
*/
export async function getGitHubVersion(): Promise<GitHubVersion> {
if (cachedGitHubVersion === undefined) {
const apiDetails = getApiDetails();
cachedGitHubVersion = await getGitHubVersionFromApi(
getApiClient(),
getApiDetails(),
createApiClientWithDetails(apiDetails),
apiDetails,
);
}
return cachedGitHubVersion;

View File

@@ -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);