@@ -331,14 +331,31 @@ jobs:
331331 echo "- ✅ Published to PyPI" >> $GITHUB_STEP_SUMMARY
332332 echo "- ✅ GitHub release created" >> $GITHUB_STEP_SUMMARY
333333
334- - name : Trigger docs changelog sync
334+ # Mint a Propolis-app token scoped to hive-kube so we can POST to
335+ # repos/honeyhiveai/hive-kube/actions/dispatches. The default
336+ # GITHUB_TOKEN is scoped only to this repo and can't dispatch
337+ # cross-repo.
338+ - name : Generate Propolis token for hive-kube dispatch
339+ if : steps.check_pypi.outputs.exists == 'false'
340+ id : app-token
341+ uses : actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
342+ with :
343+ app-id : ${{ vars.PROPOLIS_APP_ID }}
344+ private-key : ${{ secrets.PROPOLIS_PRIVATE_KEY }}
345+ owner : honeyhiveai
346+ repositories : hive-kube
347+
348+ # Fires the unified clients-changelog sync workflow in hive-kube. No
349+ # payload — the unified workflow regenerates clients.mdx from the
350+ # current state of the three CHANGELOG.md files in hive-kube. A
351+ # failure here (typically 403 if the Propolis app isn't granted
352+ # actions:write on hive-kube) fails the workflow so the missing docs
353+ # PR isn't silent.
354+ - name : Trigger clients changelog sync on hive-kube
335355 if : steps.check_pypi.outputs.exists == 'false'
336- continue-on-error : true
337356 env :
338- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
339- SYNC_REF : ${{ github.event.inputs.branch || github.ref_name }}
340- VERSION : v${{ steps.get_version.outputs.version }}
357+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
341358 run : |
342- echo "🚀 Dispatching docs changelog sync for $VERSION on $SYNC_REF..."
343- gh workflow run sync-changelog-to-docs.yml --ref "$SYNC_REF" -f version="$VERSION"
344- echo "✅ Docs changelog sync dispatched"
359+ set -euo pipefail
360+ gh api repos/honeyhiveai/hive-kube/actions/dispatches \
361+ -f event_type=clients- changelog- sync
0 commit comments