mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
docs: auto-generate API Reference nav from Speakeasy service pages (#383)
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
name: Docs navigation
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- "docs/sdks/**"
|
||||
- "scripts/gen-docs-nav.sh"
|
||||
- ".github/workflows/docs-nav.yaml"
|
||||
|
||||
jobs:
|
||||
gen-docs-nav:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v5
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# jq is preinstalled on GitHub-hosted ubuntu runners.
|
||||
- name: Regenerate docs navigation
|
||||
run: scripts/gen-docs-nav.sh
|
||||
|
||||
- name: Auto-commit docs.json navigation
|
||||
uses: int128/update-generated-files-action@v2
|
||||
with:
|
||||
commit-message: "Chore: regenerate docs navigation"
|
||||
Reference in New Issue
Block a user