Skip to content

Commit 11223d7

Browse files
d-csclaude
andcommitted
ci: make the main-image dispatch repo and ref configurable
The dispatch-main-image gate was hardcoded to triggerdotdev/trigger.dev on the main ref. Make both overridable via the MAIN_IMAGE_DISPATCH_REPO and MAIN_IMAGE_DISPATCH_REF_PREFIX repository variables, each defaulting to the current value so behaviour is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent df964ea commit 11223d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
dispatch-main-image:
123123
name: 📣 Dispatch main image
124124
needs: [publish-webapp]
125-
if: github.repository == 'triggerdotdev/trigger.dev' && needs.publish-webapp.outputs.version == 'main'
125+
if: github.repository == (vars.MAIN_IMAGE_DISPATCH_REPO || 'triggerdotdev/trigger.dev') && startsWith(github.ref_name, vars.MAIN_IMAGE_DISPATCH_REF_PREFIX || 'main')
126126
runs-on: ubuntu-latest
127127
permissions: {}
128128
steps:

0 commit comments

Comments
 (0)