Skip to content

Commit b8d0f8c

Browse files
committed
return Flow ID/Name
1 parent c4bdfef commit b8d0f8c

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

bin/deploy-runner.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/deploy-runner/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,14 @@ async function main(): Promise<void> {
327327
return;
328328
}
329329

330-
await mod.buildFlow(scripting);
330+
const flowResult = await mod.buildFlow(scripting);
331331

332-
emit("result", { success: true });
332+
const flowId =
333+
typeof flowResult?.id === "string" ? flowResult.id : undefined;
334+
const flowName =
335+
typeof flowResult?.name === "string" ? flowResult.name : undefined;
336+
337+
emit("result", { success: true, flowId, flowName });
333338
} catch (err) {
334339
const message = err instanceof Error ? err.message : String(err);
335340
emit("result", { success: false, error: message });

0 commit comments

Comments
 (0)