chore: update OpenAPI specification from openrouter-web #43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Speakeasy on PR | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - .speakeasy/in.openapi.yaml | |
| jobs: | |
| run-speakeasy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Speakeasy CLI | |
| run: | | |
| curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh | |
| # Verify speakeasy command is available | |
| if ! command -v speakeasy &> /dev/null; then | |
| echo "Error: speakeasy command not found after installation" | |
| exit 1 | |
| fi | |
| speakeasy --version | |
| - name: Run Speakeasy | |
| run: speakeasy run | |
| env: | |
| SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} | |
| - name: Validate SDK | |
| uses: ./.github/actions/validate-sdk | |
| with: | |
| openrouter-api-key: ${{ secrets.OPENROUTER_API_KEY }} | |
| - name: Auto-commit generated SDK and API docs | |
| uses: int128/update-generated-files-action@v2 | |
| with: | |
| # Set a custom message to the new commit (optional) | |
| commit-message: 'Chore: auto-generate SDK and API documentation' |