From ae5ab16e206d4ae344cafd390cccb1539da963ab Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Sun, 26 Apr 2026 12:42:52 -0700 Subject: [PATCH] ci(publish-image): accept repository_dispatch from monorepo runtime publish (#7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds 'repository_dispatch' trigger (event-type: runtime-published) so molecule-core's publish-runtime.yml cascade job can fire this template's image rebuild after a new molecule-ai-workspace-runtime PyPI release. Without this, every runtime release waited for the next push: main / manual workflow_dispatch to propagate to the published image. With it, runtime fixes flow monorepo → PyPI → all 8 template images automatically. Part of the runtime CD chain. See molecule-core docs/workspace-runtime-package.md. Co-authored-by: Hongming Wang --- .github/workflows/publish-image.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index 18c6e06..fc1ed58 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -6,6 +6,12 @@ name: publish-image # change it there if the publish pattern needs to evolve. on: + # Re-publish when a new molecule-ai-workspace-runtime is released to + # PyPI. Sent by molecule-core's publish-runtime.yml `cascade` job via + # repository_dispatch with event-type "runtime-published". + # client_payload.runtime_version carries the new version string. + repository_dispatch: + types: [runtime-published] push: branches: [main] workflow_dispatch: