Improve detection of hosted runners
This commit is contained in:
parent
03b5d23dca
commit
f1db3319d7
3 changed files with 5 additions and 5 deletions
4
dist/pre/index.js
vendored
4
dist/pre/index.js
vendored
|
|
@ -71619,8 +71619,8 @@ function isTLSEnabled(owner) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function isGithubHosted() {
|
function isGithubHosted() {
|
||||||
const runnerName = process.env.RUNNER_NAME || "";
|
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
|
||||||
return runnerName.startsWith("GitHub Actions");
|
return runnerEnvironment === "github-hosted";
|
||||||
}
|
}
|
||||||
|
|
||||||
;// CONCATENATED MODULE: ./src/setup.ts
|
;// CONCATENATED MODULE: ./src/setup.ts
|
||||||
|
|
|
||||||
2
dist/pre/index.js.map
vendored
2
dist/pre/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -24,6 +24,6 @@ export async function isTLSEnabled(owner: string): Promise<boolean> {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isGithubHosted() {
|
export function isGithubHosted() {
|
||||||
const runnerName = process.env.RUNNER_NAME || "";
|
const runnerEnvironment = process.env.RUNNER_ENVIRONMENT || "";
|
||||||
return runnerName.startsWith("GitHub Actions");
|
return runnerEnvironment === "github-hosted";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue