Update isGitHubHosted implementation

This commit is contained in:
Varun Sharma
2024-06-04 16:59:55 -07:00
parent f4f3f445f3
commit bb112d061b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -71620,8 +71620,8 @@ function isTLSEnabled(owner) {
});
}
function isGithubHosted() {
const runnerName = process.env.RUNNER_NAME || "";
return runnerName.startsWith("GitHub Actions");
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
return runnerEnvironment === "github-hosted";
}
;// CONCATENATED MODULE: ./src/setup.ts
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -24,6 +24,6 @@ export async function isTLSEnabled(owner: string): Promise<boolean> {
}
export function isGithubHosted() {
const runnerName = process.env.RUNNER_NAME || "";
return runnerName.startsWith("GitHub Actions");
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
return runnerEnvironment === "github-hosted";
}