Skip to content

Commit

Permalink
feat: make artifact port optional (#63)
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Whoa there!

You have triggered an abuse detection mechanism.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

shubhbapna authored Dec 28, 2023
1 parent 84ecaff commit a1b1567
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
@@ -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) {
2 changes: 1 addition & 1 deletion src/act/act.type.ts
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ export type RunOpts = {
workflowFile?: string;
artifactServer?: {
path: string;
port: string;
port?: string;
};
mockApi?: ResponseMocker<unknown, number>[];
mockSteps?: MockStep;

0 comments on commit a1b1567

Please sign in to comment.