Skip to content

Commit 3904aed

Browse files
committed
fix(release): return completed validation run
1 parent 5b1da71 commit 3904aed

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎scripts/full-release-validation-at-sha.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function waitForWorkflowRun(parentRunId, workflowSha) {
299299
}
300300
if (suite?.status === "completed") {
301301
if (suite.conclusion === "success") {
302-
return;
302+
return suite;
303303
}
304304
throw new Error(
305305
`Full Release Validation concluded ${String(suite.conclusion).toLowerCase()}: https://github.com/openclaw/openclaw/actions/runs/${parentRunId}`,

‎test/scripts/full-release-validation-at-sha.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ describe("full-release-validation-at-sha", () => {
152152
const source = readFileSync("scripts/full-release-validation-at-sha.mjs", "utf8");
153153
expect(source).toContain("actions/runs/${parentRunId}");
154154
expect(source).toContain("workflowRun.head_sha !== workflowSha");
155+
expect(source).toContain("return suite;");
155156
expect(source).not.toContain('"graphql"');
156157
expect(source).not.toContain('["run", "watch"');
157158
});

0 commit comments

Comments
 (0)