fix: add concurrency protection to action sync workflows (#451)

* fix: add concurrency protection to action sync workflows

* style: fix formatting in action/modes.ts

---------

Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
This commit is contained in:
pullfrog[bot]
2026-03-05 23:44:55 +00:00
committed by pullfrog[bot]
parent 5684cbef77
commit 8bac460177
40 changed files with 221 additions and 122 deletions
+3 -8
View File
@@ -1,4 +1,5 @@
// changes to tool permissions should be reflected in wiki/granular-tools.md
import * as core from "@actions/core";
import { initToolState, startMcpHttpServer, type ToolState } from "./mcp/server.ts";
import { computeModes } from "./modes.ts";
@@ -266,21 +267,15 @@ export async function main(): Promise<MainResult> {
await writeJobSummary(toolState);
// emit structured output marker for test validation
if (toolState.output) {
log.info(`::pullfrog-output::${Buffer.from(toolState.output).toString("base64")}`);
core.setOutput("result", toolState.output);
}
const mainResult = await handleAgentResult({
return await handleAgentResult({
result,
toolState,
silent: payload.event.silent ?? false,
});
return {
...mainResult,
result: toolState.output,
};
} catch (error) {
const errorMessage = error instanceof Error ? error.message : "unknown error occurred";
killTrackedChildren();