Skip to content

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)

devin-ai-integration[bot]75af5affa962
diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml
index 4f23496c0..2b60b440c 100644
--- a/.github/workflows/publish_docs.yml
+++ b/.github/workflows/publish_docs.yml
@@ -11,13 +11,15 @@ on:
required: false
default: 'next'
type: string
+ repository_dispatch:
+ types: [apollo-production-deploy]
jobs:
run:
runs-on: ubuntu-latest
container:
image: ghcr.io/composiohq/dev-base:latest
- if: ${{ (github.event_name == 'push' && contains(github.ref, 'refs/heads/next') && github.run_number > 1) || github.event_name == 'workflow_dispatch' }}
+ 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' }}
permissions: write-all
env:
COMPOSIO_API_KEY: ${{ inputs.api_key || secrets.COMPOSIO_API_KEY_PROD }}
@@ -25,6 +27,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
+ - name: Log trigger source
+ run: |
+ echo "Workflow triggered by: ${{ github.event_name }}"
+ if [ "${{ github.event_name }}" = "repository_dispatch" ]; then
+ echo "Triggered by Apollo production deployment"
+ echo "Hermes commit: ${{ github.event.client_payload.hermes_commit }}"
+ echo "Timestamp: ${{ github.event.client_payload.timestamp }}"
+ fi
+
- name: Install git
run: apt-get update && apt-get install -y git