Skip to content

Commit 6ac8c77

Browse files
tigclaude
andauthored
Notify gui-cs/Editor on NuGet publish (#5483)
Dispatches `terminal-gui-published` (payload: the published SemVer) to gui-cs/Editor after each publish. Editor's bump-terminal-gui.yml picks it up, pins the new version, validates with its full test suites, and republishes Editor against it - making Editor a continuous canary for TG API churn (see Editor specs/decisions.md DEC-010). No-op until an EDITOR_DISPATCH_TOKEN secret (PAT with repo scope on gui-cs/Editor) is configured; Editor also polls NuGet on a 6h schedule as a fallback, so nothing breaks without it. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent e9e24e5 commit 6ac8c77

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,20 @@ jobs:
119119
token: ${{ secrets.TEMPLATE_REPO_TOKEN }}
120120
repository: gui-cs/Terminal.Gui.templates
121121
event-type: terminal-gui-v2-released
122-
client-payload: ${{ steps.payload.outputs.json }}
122+
client-payload: ${{ steps.payload.outputs.json }}
123+
124+
# Notify gui-cs/Editor so its bump-terminal-gui.yml workflow can pin the
125+
# just-published version, validate, and republish Editor against it
126+
# (Editor is the continuous canary for TG API churn — see Editor's
127+
# specs/decisions.md DEC-010). Editor also polls NuGet on a schedule, so a
128+
# missing token degrades gracefully.
129+
# Requires EDITOR_DISPATCH_TOKEN: a PAT with `repo` scope on gui-cs/Editor.
130+
- name: Notify gui-cs/Editor of publish
131+
if: ${{ secrets.EDITOR_DISPATCH_TOKEN != '' }}
132+
continue-on-error: true
133+
uses: peter-evans/repository-dispatch@v4
134+
with:
135+
token: ${{ secrets.EDITOR_DISPATCH_TOKEN }}
136+
repository: gui-cs/Editor
137+
event-type: terminal-gui-published
138+
client-payload: '{"version":"${{ steps.gitversion.outputs.SemVer }}"}'

0 commit comments

Comments
 (0)