Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions .github/workflows/context7.yml

This file was deleted.

22 changes: 12 additions & 10 deletions .github/workflows/generate-toolkit-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
repository_dispatch:
types: [porter_deploy_succeeded]
workflow_dispatch:
inputs:
public_catalog_url:
description: "Override public catalog URL (staging only; production is the default)"
required: false
type: string
# 11:00 UTC = 3 AM PST / 4 AM PDT — late enough that DST drift doesn't matter.
schedule:
- cron: "0 11 * * *"
Expand Down Expand Up @@ -67,11 +72,11 @@ jobs:
--verbose \
--api-source public-catalog \
--llm-provider anthropic \
--llm-model "$ANTHROPIC_MODEL" \
--llm-model "claude-sonnet-4-6" \
--llm-api-key "$ANTHROPIC_API_KEY" \
--llm-max-tokens 8192 \
--llm-editor-provider anthropic \
--llm-editor-model "$ANTHROPIC_EDITOR_MODEL" \
--llm-editor-model "claude-sonnet-4-6" \
--llm-editor-api-key "$ANTHROPIC_API_KEY" \
--toolkit-concurrency 8 \
--llm-concurrency 15 \
Expand All @@ -84,19 +89,16 @@ jobs:
working-directory: toolkit-docs-generator
env:
# Unset in normal runs: the generator defaults to the production
# experience API, which needs no credentials. Set the secret to
# point a run at staging or a local BFF.
PUBLIC_CATALOG_URL: ${{ secrets.PUBLIC_CATALOG_URL }}
# experience API. Pass public_catalog_url on workflow_dispatch to
# point a manual run at staging or a local BFF.
PUBLIC_CATALOG_URL: ${{ inputs.public_catalog_url }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ANTHROPIC_MODEL: ${{ secrets.ANTHROPIC_MODEL || 'claude-sonnet-4-6' }}
# Stronger model for the secret-coherence editor. Keeps
# stale-secret cleanup precise instead of re-summarizing the whole
# artifact.
ANTHROPIC_EDITOR_MODEL: ${{ secrets.ANTHROPIC_EDITOR_MODEL || 'claude-sonnet-4-6' }}

- name: Sync toolkit sidebar navigation
run: pnpm exec tsx toolkit-docs-generator/scripts/sync-toolkit-sidebar.ts --remove-empty-sections=false --verbose

# GITHUB_TOKEN PRs do not start other workflows. Docs Bot is a GitHub
# App, so the opened automation PR still runs Test.
- name: Get app token
id: app-token
uses: ./.github/actions/app-token
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/llmstxt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ jobs:
name: Generate LLMSTXT
runs-on: ubuntu-latest

permissions:
contents: write
pull-requests: write

steps:
- name: Use Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -66,6 +62,8 @@ jobs:
echo "has_changes=false" >> $GITHUB_OUTPUT
fi

# GITHUB_TOKEN pushes and PRs do not start other workflows. Docs Bot
# is a GitHub App, so Test still runs on the new SHA.
- name: Get app token
if: steps.check-changes.outputs.has_changes == 'true'
id: app-token
Expand Down Expand Up @@ -113,6 +111,7 @@ jobs:

- name: Enable Pull Request Automerge
if: steps.check-changes.outputs.has_changes == 'true' && github.event_name != 'pull_request' && steps.cpr.outputs.pull-request-number != ''
continue-on-error: true
run: gh pr merge --squash --auto ${{ steps.cpr.outputs.pull-request-number }}
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
Loading
Loading