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
ci(docs): degrade KB refresh to artifact-only when upstream token fails
jkomynof39d37be77ed
diff --git a/.github/workflows/docs-update-kb.yml b/.github/workflows/docs-update-kb.ymlindex e6a280208..01ee096fb 100644--- a/.github/workflows/docs-update-kb.yml+++ b/.github/workflows/docs-update-kb.yml@@ -24,8 +24,12 @@ jobs:working-directory: ./docssteps:+ # If the app has no installation on support-knowledge, this fails+ # with 404. Degrade to an upstream-sync skip instead of killing the+ # whole job: the stale-artifact rebuild below needs only this repo.- name: Generate read-only upstream tokenid: upstream-token+ continue-on-error: trueuses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0with:client-id: ${{ vars.RELEASE_BOT_CLIENT_ID }}@@ -40,6 +44,7 @@ jobs:persist-credentials: false- name: Checkout support knowledge+ if: steps.upstream-token.outcome == 'success'uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:repository: ComposioHQ/support-knowledge@@ -51,9 +56,16 @@ jobs:id: sourceenv:SOURCE_ROOT: ${{ github.workspace }}/.support-knowledge+ HAVE_UPSTREAM: ${{ steps.upstream-token.outcome == 'success' }}run: |- source_commit=$(git -C "$SOURCE_ROOT" rev-parse HEAD)current_commit=$(jq -r '.source.commit' kb/manifest.json)+ echo "commit=$current_commit" >> "$GITHUB_OUTPUT"+ if [ "$HAVE_UPSTREAM" != "true" ]; then+ echo "upstream_changed=false" >> "$GITHUB_OUTPUT"+ echo "No upstream token; skipping support-knowledge sync check and treating upstream as unchanged."+ exit 0+ fi+ source_commit=$(git -C "$SOURCE_ROOT" rev-parse HEAD)echo "commit=$source_commit" >> "$GITHUB_OUTPUT"if [ "$source_commit" = "$current_commit" ]; thenecho "upstream_changed=false" >> "$GITHUB_OUTPUT"