Skip to content

Commit

Permalink
chore: fixed uses invocation chain
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed May 22, 2024
1 parent eb6c3a3 commit e22eb86
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/github/handlers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ async function handleEvent(event: EmitterWebhookEvent, eventHandler: InstanceTyp
await eventHandler.pluginChainState.put(stateId, state);

if (!isGithubPluginObject) {
return await dispatchWorker(plugin, inputs.getInputs());
await dispatchWorker(plugin, inputs.getInputs());
} else {
await dispatchWorkflow(context, {
owner: plugin.owner,
repository: plugin.repo,
workflowId: plugin.workflowId,
ref: plugin.ref,
inputs: inputs.getInputs(),
});
}

await dispatchWorkflow(context, {
owner: plugin.owner,
repository: plugin.repo,
workflowId: plugin.workflowId,
ref: plugin.ref,
inputs: inputs.getInputs(),
});
}
}

0 comments on commit e22eb86

Please sign in to comment.