ci(publish-image): accept repository_dispatch from monorepo runtime publish (#6)
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:
parent
27909d48d8
commit
e2ee50004f
6
.github/workflows/publish-image.yml
vendored
6
.github/workflows/publish-image.yml
vendored
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user