From a1b15674197d54e9accb13af3598fd89fe652e5d Mon Sep 17 00:00:00 2001 From: Shubh Bapna <38372682+shubhbapna@users.noreply.github.com> Date: Thu, 28 Dec 2023 14:29:04 +0530 Subject: [PATCH] feat: make artifact port optional (#63) --- src/act/act.ts | 8 ++++---- src/act/act.type.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/act/act.ts b/src/act/act.ts index f489758..6735bb2 100644 --- a/src/act/act.ts +++ b/src/act/act.ts @@ -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) { diff --git a/src/act/act.type.ts b/src/act/act.type.ts index 14f0180..6fbc907 100644 --- a/src/act/act.type.ts +++ b/src/act/act.type.ts @@ -27,7 +27,7 @@ export type RunOpts = { workflowFile?: string; artifactServer?: { path: string; - port: string; + port?: string; }; mockApi?: ResponseMocker[]; mockSteps?: MockStep;