Skip to content

Commit 2ad991b

Browse files
authored
feat: render awf reflect summary to core.info (#40069)
1 parent ae0eb9b commit 2ad991b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

actions/setup/js/awf_reflect_summary.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ async function main() {
261261

262262
const markdown = buildReflectSummary(reflectData, { awfConfigData, runtimeModelsData });
263263
await core.summary.addRaw(markdown).write();
264+
core.info(markdown);
264265
core.info("AWF reflect summary written to step summary");
265266
}
266267

actions/setup/js/awf_reflect_summary.test.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,8 @@ describe("awf_reflect_summary.cjs", () => {
378378
expect(summary).toContain("openai");
379379
expect(summary).toContain("Runtime models.json");
380380
expect(mockCore.summary.write).toHaveBeenCalledTimes(1);
381+
expect(mockCore.info).toHaveBeenCalledTimes(2);
382+
expect(mockCore.info).toHaveBeenCalledWith(summary);
381383
expect(mockCore.info).toHaveBeenCalledWith(expect.stringContaining("AWF reflect summary written"));
382384
});
383385
});

0 commit comments

Comments
 (0)