diff --git a/.github/workflows/trigger-agent-toolkit-update.yaml b/.github/workflows/trigger-agent-toolkit-update.yaml new file mode 100644 index 0000000..d717fe8 --- /dev/null +++ b/.github/workflows/trigger-agent-toolkit-update.yaml @@ -0,0 +1,18 @@ +name: Trigger Agent Toolkit Update + +on: + pull_request: + types: [closed] + +jobs: + trigger-videodb-helper-update: + if: ${{ github.event.pull_request.merged && github.event.pull_request.base.ref == 'main' }} + runs-on: ubuntu-latest + steps: + - name: Trigger Agent Toolkit Update workflow via repository_dispatch + run: | + curl -X POST -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{ secrets.AGENT_TOOLKIT_TOKEN}}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/videodb-db/agent-toolkit/dispatches \ + -d '{"event_type": "sdk-pr-merged", "client_payload": {"pr_number": ${{ github.event.pull_request.number }}}}' \ No newline at end of file