Skip to content

Commit

Permalink
feat: make artifact port optional (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhbapna authored Dec 28, 2023
1 parent 84ecaff commit a1b1567
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/act/act.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@ export class Act {
}

if (opts?.artifactServer) {
actArguments.push(
"--artifact-server-path", opts?.artifactServer.path,
"--artifact-server-port", opts?.artifactServer.port
);
actArguments.push("--artifact-server-path", opts?.artifactServer.path);
if (opts.artifactServer.port) {
actArguments.push("--artifact-server-port", opts?.artifactServer.port);
}
}

if (opts?.bind) {
Expand Down
2 changes: 1 addition & 1 deletion src/act/act.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export type RunOpts = {
workflowFile?: string;
artifactServer?: {
path: string;
port: string;
port?: string;
};
mockApi?: ResponseMocker<unknown, number>[];
mockSteps?: MockStep;
Expand Down

0 comments on commit a1b1567

Please sign in to comment.