fix(release): require postpublish evidence artifact

This commit is contained in:
Vincent Koc
2026-06-23 14:53:14 +08:00
committed by GitHub
parent e0d7776fff
commit 78a8caef38
2 changed files with 9 additions and 2 deletions

View File

@@ -1466,9 +1466,9 @@ jobs:
fi
- name: Upload postpublish evidence
if: ${{ always() }}
if: ${{ always() && inputs.publish_openclaw_npm }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: openclaw-release-postpublish-evidence-${{ inputs.tag }}
path: ${{ runner.temp }}/openclaw-release-postpublish-evidence
if-no-files-found: ignore
if-no-files-found: error

View File

@@ -2237,6 +2237,13 @@ describe("package artifact reuse", () => {
expect(clawHubReleasePlanScript).toContain("--plugin-clawhub-bootstrap-run");
expect(releaseWorkflow).toContain('verify_args+=(--plugins "${PLUGINS}")');
expect(releaseWorkflow).toContain("openclaw-release-postpublish-evidence");
const postpublishEvidenceUpload = workflowStep(
workflowJob(RELEASE_PUBLISH_WORKFLOW, "publish"),
"Upload postpublish evidence",
);
expect(postpublishEvidenceUpload.if).toContain("always()");
expect(postpublishEvidenceUpload.if).toContain("inputs.publish_openclaw_npm");
expect(postpublishEvidenceUpload.with?.["if-no-files-found"]).toBe("error");
expect(releaseWorkflow).toContain("Failed child job summary");
expect(releaseWorkflow).toContain("Workflow completion waits for ClawHub");
expect(releaseWorkflow).toContain("Workflow completion does not wait for ClawHub");