Skip to content

Commit

Permalink
refactor: lift dispatch to main
Browse files Browse the repository at this point in the history
  • Loading branch information
Codex- committed Oct 2, 2024
1 parent 15bb14f commit a5d5ff0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ import { getWorkflowId, returnDispatch } from "./return-dispatch.ts";

const workflowId = await getWorkflowId(config);

// Dispatch the action
await api.dispatchWorkflow(config.distinctId);

await returnDispatch(config, startTime, workflowId);
})();
3 changes: 0 additions & 3 deletions src/return-dispatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ export async function returnDispatch(
workflowId: number,
): Promise<void> {
try {
// Dispatch the action
await api.dispatchWorkflow(config.distinctId);

// Attempt to get the branch from config ref
core.info("Attempt to extract branch name from ref...");
const branch = getBranchName(config.ref);
Expand Down

0 comments on commit a5d5ff0

Please sign in to comment.