ci(publish-image): accept repository_dispatch from monorepo runtime publish (#10)

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 <hongmingwangalt@gmail.com>
This commit is contained in:
Hongming Wang 2026-04-26 12:42:19 -07:00 committed by GitHub
parent 8fbd6689f0
commit 13eadcc158
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]
pull_request: