Speakeasy SDK Generation #95
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: Speakeasy SDK Generation | |
| on: | |
| workflow_dispatch: {} # Manual trigger | |
| schedule: | |
| - cron: '0 0 * * *' # Daily at midnight UTC | |
| jobs: | |
| generate: | |
| name: Generate agents-mcp SDK | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 | |
| - name: Check Speakeasy secret | |
| id: speakeasy-secret | |
| env: | |
| SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }} | |
| run: | | |
| if [ -z "${SPEAKEASY_API_KEY}" ]; then | |
| echo "::notice::SPEAKEASY_API_KEY is not configured. Skipping SDK generation." | |
| echo "skip=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "skip=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Generate SDK | |
| if: steps.speakeasy-secret.outputs.skip != 'true' | |
| uses: speakeasy-api/sdk-generation-action@b823adc6be7d30b25198529f99f46303bc083534 # v15 | |
| with: | |
| speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| mode: pr | |
| working_directory: packages/agents-mcp |