From 6fd0b9a2658fa30a708dc4f1f8f01f66d64e5b3c Mon Sep 17 00:00:00 2001 From: "Billy D." Date: Fri, 20 Feb 2026 09:05:46 -0500 Subject: [PATCH] feat: add downstream dependency cascade on release After a successful release tag, notify 5 downstream repos via Gitea repository_dispatch so they auto-update handler-base. --- .gitea/workflows/ci.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 11ace10..3bf5984 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -61,6 +61,8 @@ jobs: runs-on: ubuntu-latest needs: [lint, test] if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push' + outputs: + version: ${{ steps.version.outputs.version }} steps: - name: Checkout uses: actions/checkout@v4 @@ -100,10 +102,32 @@ jobs: git tag -a ${{ steps.version.outputs.version }} -m "Release ${{ steps.version.outputs.version }}" git push origin ${{ steps.version.outputs.version }} + notify-downstream: + name: Notify Downstream + runs-on: ubuntu-latest + needs: [release] + if: needs.release.result == 'success' + strategy: + matrix: + repo: + - chat-handler + - pipeline-bridge + - tts-module + - voice-assistant + - stt-module + steps: + - name: Trigger dependency update + run: | + curl -s -X POST \ + -H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{"event_type":"handler-base-release","client_payload":{"version":"${{ needs.release.outputs.version }}"}}' \ + "${{ gitea.server_url }}/api/v1/repos/daviestechlabs/${{ matrix.repo }}/dispatches" + notify: name: Notify runs-on: ubuntu-latest - needs: [lint, test, release] + needs: [lint, test, release, notify-downstream] if: always() steps: - name: Notify on success