Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit a2c4b5c

Browse files
Setting the working directory of octorun
1 parent f8f1bfc commit a2c4b5c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/GitHub.Api/Tasks/OctorunTask.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class OctorunTask : ProcessTask<OctorunResult>
5757
private readonly string userToken;
5858

5959
private readonly NPath pathToNodeJs;
60+
private readonly NPath pathToOctorunJs;
6061
private readonly string arguments;
6162

6263
public OctorunTask(CancellationToken token, NPath pathToNodeJs, NPath pathToOctorunJs, string arguments,
@@ -72,13 +73,16 @@ public OctorunTask(CancellationToken token, NPath pathToNodeJs, NPath pathToOcto
7273
this.user = user;
7374
this.userToken = userToken;
7475
this.pathToNodeJs = pathToNodeJs;
76+
this.pathToOctorunJs = pathToOctorunJs;
7577
this.arguments = $"{pathToOctorunJs} {arguments}";
7678
}
7779

7880
public override void Configure(ProcessStartInfo psi)
7981
{
8082
base.Configure(psi);
8183

84+
psi.WorkingDirectory = pathToOctorunJs.Parent.Parent;
85+
8286
if (clientId != null)
8387
{
8488
psi.EnvironmentVariables.Add("OCTOKIT_CLIENT_ID", clientId);

0 commit comments

Comments
 (0)