Skip to content

Commit 78a8cae

Browse files
authored
fix(release): require postpublish evidence artifact
1 parent e0d7776 commit 78a8cae

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/openclaw-release-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,9 +1466,9 @@ jobs:
14661466
fi
14671467
14681468
- name: Upload postpublish evidence
1469-
if: ${{ always() }}
1469+
if: ${{ always() && inputs.publish_openclaw_npm }}
14701470
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
14711471
with:
14721472
name: openclaw-release-postpublish-evidence-${{ inputs.tag }}
14731473
path: ${{ runner.temp }}/openclaw-release-postpublish-evidence
1474-
if-no-files-found: ignore
1474+
if-no-files-found: error

test/scripts/package-acceptance-workflow.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,6 +2237,13 @@ describe("package artifact reuse", () => {
22372237
expect(clawHubReleasePlanScript).toContain("--plugin-clawhub-bootstrap-run");
22382238
expect(releaseWorkflow).toContain('verify_args+=(--plugins "${PLUGINS}")');
22392239
expect(releaseWorkflow).toContain("openclaw-release-postpublish-evidence");
2240+
const postpublishEvidenceUpload = workflowStep(
2241+
workflowJob(RELEASE_PUBLISH_WORKFLOW, "publish"),
2242+
"Upload postpublish evidence",
2243+
);
2244+
expect(postpublishEvidenceUpload.if).toContain("always()");
2245+
expect(postpublishEvidenceUpload.if).toContain("inputs.publish_openclaw_npm");
2246+
expect(postpublishEvidenceUpload.with?.["if-no-files-found"]).toBe("error");
22402247
expect(releaseWorkflow).toContain("Failed child job summary");
22412248
expect(releaseWorkflow).toContain("Workflow completion waits for ClawHub");
22422249
expect(releaseWorkflow).toContain("Workflow completion does not wait for ClawHub");

0 commit comments

Comments
 (0)