Skip to content

Commit

Permalink
chore: log pa workflow info
Browse files Browse the repository at this point in the history
  • Loading branch information
EresDev committed Dec 5, 2024
1 parent a69d67a commit 98026fb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/handlers/call-personal-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ export async function callPersonalAgent(context: Context) {
ref: "development",
};

logger.debug(`Calling personal agent:`, paWorkflowParams);
logger.info(`Calling personal agent:`, paWorkflowParams);

try {
await octokit.rest.actions.createWorkflowDispatch(paWorkflowParams);
await octokit.rest.actions.createWorkflowDispatch({
owner: personalAgentOwner,
repo: "personal-agent",
workflow_id: "compute.yml",
ref: "development",
});
} catch (error) {
logger.error(`Error dispatching workflow:`, { err: error, error: new Error() });
throw error;
Expand Down

0 comments on commit 98026fb

Please sign in to comment.