mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-11-24 12:01:25 +01:00
* Bump platformdirs and markdown-it-py in lock files Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Pin claude-code-action, verify gitleaks download, scope checkout credentials Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Set persist-credentials on the remaining downstream smoke checkouts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
69 lines
2.4 KiB
YAML
69 lines
2.4 KiB
YAML
name: Update SDK Documentation
|
|
|
|
# Regenerates SDK docs on pushes to main and opens a long-lived PR
|
|
# with the changes, so contributor PRs stay clean.
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- "fastmcp_slim/**"
|
|
- "pyproject.toml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update-sdk-docs:
|
|
timeout-minutes: 5
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Generate Marvin App token
|
|
id: marvin-token
|
|
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3
|
|
with:
|
|
app-id: ${{ secrets.MARVIN_APP_ID }}
|
|
private-key: ${{ secrets.MARVIN_APP_PRIVATE_KEY }}
|
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
|
|
with:
|
|
persist-credentials: true
|
|
token: ${{ steps.marvin-token.outputs.token }}
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
|
|
with:
|
|
enable-cache: true
|
|
cache-dependency-glob: "uv.lock"
|
|
|
|
- name: Install dependencies
|
|
run: uv sync --python 3.12
|
|
|
|
- name: Install just
|
|
uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4
|
|
|
|
- name: Generate SDK documentation
|
|
run: just api-ref-all
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8
|
|
with:
|
|
token: ${{ steps.marvin-token.outputs.token }}
|
|
commit-message: "chore: Update SDK documentation"
|
|
title: "chore: Update SDK documentation"
|
|
body: |
|
|
This PR updates the auto-generated SDK documentation to reflect the latest source code changes.
|
|
|
|
📚 Documentation is automatically generated from the source code docstrings and type annotations.
|
|
|
|
**Note:** This PR is fully automated and will update itself with any subsequent changes to the SDK, or close automatically if the documentation becomes up-to-date through other means. Feel free to leave it open until you're ready to merge.
|
|
|
|
🤖 Generated by Marvin
|
|
branch: marvin/update-sdk-docs
|
|
labels: |
|
|
ignore in release notes
|
|
delete-branch: true
|
|
author: "marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>"
|
|
committer: "marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>"
|