Commit 16da774
ci: gate main-image dispatch on push events and make target configurable
Addresses review feedback:
- The startsWith(github.ref_name, ...) gate would fire during release builds:
release.yml invokes publish.yml via workflow_call with an explicit image_tag
while github.ref_name is still `main`, so the job ran without CROSS_REPO_PAT
and failed the release pipeline. Gate on github.event_name == 'push' — the
intended paths (push to main, push of build-* tags) are push events; the
release path is pull_request/workflow_dispatch. A version-equality check
can't be used because build-* tags strip the prefix to the version output.
- Make the dispatch target overridable via MAIN_IMAGE_DISPATCH_TARGET,
defaulting to triggerdotdev/cloud.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent d4d2619 commit 16da774
1 file changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
122 | 127 | | |
123 | 128 | | |
124 | 129 | | |
125 | | - | |
| 130 | + | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
| |||
153 | 158 | | |
154 | 159 | | |
155 | 160 | | |
156 | | - | |
| 161 | + | |
157 | 162 | | |
158 | 163 | | |
0 commit comments