Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
feat: Add repository_dispatch support for docs publishing triggered by Apollo deployments (#1984)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: himanshu@composio.dev <himanshu@composio.dev>
devin-ai-integration[bot] committed
Sep 24, 2025 at 14:19 UTC
75af5affa9620f0a67fb505412f396e22414d400
1 file changed
+12
-1
.github/workflows/publish_docs.yml
+12
-1
@@ -11,13 +11,15 @@ on:
11
required: false
12
default: 'next'
13
type: string
14
+ repository_dispatch:
15
+ types: [apollo-production-deploy]
16
17
jobs:
18
run:
19
runs-on: ubuntu-latest
20
container:
21
image: ghcr.io/composiohq/dev-base:latest
20
- if: ${{ (github.event_name == 'push' && contains(github.ref, 'refs/heads/next') && github.run_number > 1) || github.event_name == 'workflow_dispatch' }}
22
+ if: ${{ (github.event_name == 'push' && contains(github.ref, 'refs/heads/next') && github.run_number > 1) || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }}
23
permissions: write-all
24
env:
25
COMPOSIO_API_KEY: ${{ inputs.api_key || secrets.COMPOSIO_API_KEY_PROD }}
@@ -25,6 +27,15 @@ jobs:
27
- name: Checkout repository
28
uses: actions/checkout@v4
29
30
+ - name: Log trigger source
31
+ run: |
32
+ echo "Workflow triggered by: ${{ github.event_name }}"
33
+ if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
34
+ echo "Triggered by Apollo production deployment"
35
+ echo "Hermes commit: ${{ github.event.client_payload.hermes_commit }}"
36
+ echo "Timestamp: ${{ github.event.client_payload.timestamp }}"
37
+ fi
38
+
39
- name: Install git
40
run: apt-get update && apt-get install -y git
41