diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4edca3343e..b1a30a2e12 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -119,4 +119,20 @@ jobs: token: ${{ secrets.TEMPLATE_REPO_TOKEN }} repository: gui-cs/Terminal.Gui.templates event-type: terminal-gui-v2-released - client-payload: ${{ steps.payload.outputs.json }} + client-payload: ${{ steps.payload.outputs.json }} + + # Notify gui-cs/Editor so its bump-terminal-gui.yml workflow can pin the + # just-published version, validate, and republish Editor against it + # (Editor is the continuous canary for TG API churn — see Editor's + # specs/decisions.md DEC-010). Editor also polls NuGet on a schedule, so a + # missing token degrades gracefully. + # Requires EDITOR_DISPATCH_TOKEN: a PAT with `repo` scope on gui-cs/Editor. + - name: Notify gui-cs/Editor of publish + if: ${{ secrets.EDITOR_DISPATCH_TOKEN != '' }} + continue-on-error: true + uses: peter-evans/repository-dispatch@v4 + with: + token: ${{ secrets.EDITOR_DISPATCH_TOKEN }} + repository: gui-cs/Editor + event-type: terminal-gui-published + client-payload: '{"version":"${{ steps.gitversion.outputs.SemVer }}"}'