test(release): align ClawHub protected dispatch ref

This commit is contained in:
Vincent Koc
2026-08-20 23:18:08 -07:00
parent 72cca15b90
commit 8bdcd9e5d6
+5 -3
View File
@@ -1315,17 +1315,19 @@ describe("buildOpenClawReleaseClawHubPlan", () => {
},
);
expect(plan.clawHubWorkflowRef).toBe("v2026.4.1-beta.1");
expect(plan.clawHubWorkflowRef).toBe(`release-publish/${"d".repeat(12)}-12345`);
expect(plan.bootstrapWorkflowSha).toBe("d".repeat(40));
expect(plan.releasePublishBranch).toBe("main");
expect(plan.normal).toEqual({
workflow: "plugin-clawhub-release.yml",
ref: "v2026.4.1-beta.1",
ref: `release-publish/${"d".repeat(12)}-12345`,
shouldDispatch: true,
packages: ["@openclaw/demo-plugin"],
inputs: {
publish_scope: "selected",
ref: "a".repeat(40),
plugins: "@openclaw/demo-plugin",
release_publish_run_attempt: "2",
release_publish_run_id: "12345",
release_publish_branch: "main",
},
@@ -1355,7 +1357,7 @@ describe("buildOpenClawReleaseClawHubPlan", () => {
missingTrustedPlugins: "@openclaw/demo-three",
});
expect(plan.verifier).toEqual({
clawHubWorkflowRef: "v2026.4.1-beta.1",
clawHubWorkflowRef: `release-publish/${"d".repeat(12)}-12345`,
});
});