Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(docs): normalize staging data sync URLs
jkomyno2724126199b1
diff --git a/.github/workflows/docs-update-data.yml b/.github/workflows/docs-update-data.ymlindex 5f2bcf444..5efd74e71 100644--- a/.github/workflows/docs-update-data.yml+++ b/.github/workflows/docs-update-data.yml@@ -43,19 +43,28 @@ jobs:env:COMPOSIO_BASE_URL_STAGING: ${{ secrets.COMPOSIO_BASE_URL_STAGING }}run: |- staging_v3_base="${COMPOSIO_BASE_URL_STAGING%/}"+ staging_base="${COMPOSIO_BASE_URL_STAGING%/}"- if [ -z "$staging_v3_base" ]; then+ if [ -z "$staging_base" ]; thenecho "::error::COMPOSIO_BASE_URL_STAGING is not set"exit 1fi- if [[ "$staging_v3_base" != */api/v3 ]]; then- echo "::error::COMPOSIO_BASE_URL_STAGING must include the /api/v3 path"+ if [[ "$staging_base" == "https://backend.composio.dev" || "$staging_base" == "https://backend.composio.dev/"* ]]; then+ echo "::error::COMPOSIO_BASE_URL_STAGING points at production"exit 1fi- staging_v31_base="${staging_v3_base%/api/v3}/api/v3.1"+ if [[ "$staging_base" == */api/v3 ]]; then+ staging_v3_base="$staging_base"+ staging_v31_base="${staging_base%/api/v3}/api/v3.1"+ elif [[ "$staging_base" == */api/v3.1 ]]; then+ staging_v3_base="${staging_base%/api/v3.1}/api/v3"+ staging_v31_base="$staging_base"+ else+ staging_v3_base="$staging_base/api/v3"+ staging_v31_base="$staging_base/api/v3.1"+ fi{echo "COMPOSIO_API_BASE=$staging_v3_base"