Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
ci(docs): degrade KB refresh to artifact-only when upstream token fails
Every scheduled run of the KB refresh workflow has failed at the first step: the release-bot app has no installation on the internal support-knowledge repository, so the token request 404s and the whole job dies before anything runs. The upstream import needs that token, but the stale-artifact rebuild needs only this repository. Continue past a token failure, skip the support-knowledge checkout and sync check, and let the staleness-based rebuild proceed. Upstream sync stays degraded until the app is installed on support-knowledge.
jkomyno committed
Aug 26, 2026 at 13:18 UTC
f39d37be77ed58b7a8ce2e6c9625db182c020f51
1 file changed
+13
-1
.github/workflows/docs-update-kb.yml
+13
-1
@@ -24,8 +24,12 @@ jobs:
24
working-directory: ./docs
25
26
steps:
27
+ # If the app has no installation on support-knowledge, this fails
28
+ # with 404. Degrade to an upstream-sync skip instead of killing the
29
+ # whole job: the stale-artifact rebuild below needs only this repo.
30
- name: Generate read-only upstream token
31
id: upstream-token
32
+ continue-on-error: true
33
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
34
with:
35
client-id: ${{ vars.RELEASE_BOT_CLIENT_ID }}
@@ -40,6 +44,7 @@ jobs:
44
persist-credentials: false
45
46
- name: Checkout support knowledge
47
+ if: steps.upstream-token.outcome == 'success'
48
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
49
with:
50
repository: ComposioHQ/support-knowledge
@@ -51,9 +56,16 @@ jobs:
56
id: source
57
env:
58
SOURCE_ROOT: ${{ github.workspace }}/.support-knowledge
59
+ HAVE_UPSTREAM: ${{ steps.upstream-token.outcome == 'success' }}
60
run: |
55
- source_commit=$(git -C "$SOURCE_ROOT" rev-parse HEAD)
61
current_commit=$(jq -r '.source.commit' kb/manifest.json)
62
+ echo "commit=$current_commit" >> "$GITHUB_OUTPUT"
63
+ if [ "$HAVE_UPSTREAM" != "true" ]; then
64
+ echo "upstream_changed=false" >> "$GITHUB_OUTPUT"
65
+ echo "No upstream token; skipping support-knowledge sync check and treating upstream as unchanged."
66
+ exit 0
67
+ fi
68
+ source_commit=$(git -C "$SOURCE_ROOT" rev-parse HEAD)
69
echo "commit=$source_commit" >> "$GITHUB_OUTPUT"
70
if [ "$source_commit" = "$current_commit" ]; then
71
echo "upstream_changed=false" >> "$GITHUB_OUTPUT"