mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-08-22 03:18:54 +08:00
fix: expose conclusion output (#1549)
This commit is contained in:
@@ -167,6 +167,9 @@ inputs:
|
|||||||
default: ""
|
default: ""
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
conclusion:
|
||||||
|
description: "Execution status of Claude Code ('success' or 'failure')"
|
||||||
|
value: ${{ steps.run.outputs.conclusion }}
|
||||||
execution_file:
|
execution_file:
|
||||||
description: "Path to the Claude Code execution output file"
|
description: "Path to the Claude Code execution output file"
|
||||||
value: ${{ steps.run.outputs.execution_file }}
|
value: ${{ steps.run.outputs.execution_file }}
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { readFileSync } from "node:fs";
|
||||||
|
import { describe, expect, test } from "bun:test";
|
||||||
|
|
||||||
|
describe("action metadata", () => {
|
||||||
|
test("should expose the conclusion output from the run step", () => {
|
||||||
|
const metadata = readFileSync(
|
||||||
|
new URL("../action.yml", import.meta.url),
|
||||||
|
"utf8",
|
||||||
|
);
|
||||||
|
|
||||||
|
expect(metadata).toMatch(
|
||||||
|
/^ conclusion:\n description: .+\n value: \$\{\{ steps\.run\.outputs\.conclusion \}\}$/m,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user