@devries-cameron20 / composio Mirror · read-only / commits / 272412619
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 19:45 UTC

fix(docs): normalize staging data sync URLs

jkomyno committed Jun 17, 2026 at 18:37 UTC 2724126199b149e1f0282bd540ca09a5894d56eb
1 file changed +14 -5
.github/workflows/docs-update-data.yml
+14 -5
@@ -43,19 +43,28 @@ jobs:
43 env:
44 COMPOSIO_BASE_URL_STAGING: ${{ secrets.COMPOSIO_BASE_URL_STAGING }}
45 run: |
46 - staging_v3_base="${COMPOSIO_BASE_URL_STAGING%/}"
46 + staging_base="${COMPOSIO_BASE_URL_STAGING%/}"
47
48 - if [ -z "$staging_v3_base" ]; then
48 + if [ -z "$staging_base" ]; then
49 echo "::error::COMPOSIO_BASE_URL_STAGING is not set"
50 exit 1
51 fi
52
53 - if [[ "$staging_v3_base" != */api/v3 ]]; then
54 - echo "::error::COMPOSIO_BASE_URL_STAGING must include the /api/v3 path"
53 + if [[ "$staging_base" == "https://backend.composio.dev" || "$staging_base" == "https://backend.composio.dev/"* ]]; then
54 + echo "::error::COMPOSIO_BASE_URL_STAGING points at production"
55 exit 1
56 fi
57
58 - staging_v31_base="${staging_v3_base%/api/v3}/api/v3.1"
58 + if [[ "$staging_base" == */api/v3 ]]; then
59 + staging_v3_base="$staging_base"
60 + staging_v31_base="${staging_base%/api/v3}/api/v3.1"
61 + elif [[ "$staging_base" == */api/v3.1 ]]; then
62 + staging_v3_base="${staging_base%/api/v3.1}/api/v3"
63 + staging_v31_base="$staging_base"
64 + else
65 + staging_v3_base="$staging_base/api/v3"
66 + staging_v31_base="$staging_base/api/v3.1"
67 + fi
68
69 {
70 echo "COMPOSIO_API_BASE=$staging_v3_base"