Skip to content

Commit 94212d1

Browse files
authored
Update index.ts
1 parent a497d72 commit 94212d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function resolveInstallDependencies(input: string): boolean {
2222

2323
const isGitHubHosted = runnerEnvironment === "github-hosted" && agentIsSelfHosted !== "1";
2424

25-
// shouldInstall will return true for self-hosted and false for gitub-hosted
26-
const shouldInstall = !isGitHubHosted;
25+
// shouldInstall will return true for github-hosted and false for self-hosted
26+
const shouldInstall = isGitHubHosted;
2727

2828
core.info(`Auto-detected runner type: ${isGitHubHosted ? 'GitHub-hosted' : 'self-hosted'}`);
2929
core.info(`System dependencies will ${shouldInstall ? 'be' : 'not be'} installed (auto mode)`);

0 commit comments

Comments
 (0)