Add set_output tool (#205)
This commit is contained in:
committed by
pullfrog[bot]
parent
2daab6fc78
commit
c1f8247077
@@ -15,6 +15,10 @@ async function run(): Promise<void> {
|
||||
if (!result.success) {
|
||||
throw new Error(result.error || "Agent execution failed");
|
||||
}
|
||||
|
||||
if (result.result) {
|
||||
core.setOutput("result", result.result);
|
||||
}
|
||||
} catch (error) {
|
||||
const errorMessage = error instanceof Error ? error.message : "Unknown error occurred";
|
||||
core.setFailed(`Action failed: ${errorMessage}`);
|
||||
|
||||
Reference in New Issue
Block a user