Generate #546
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: Generate | |
| permissions: | |
| checks: write | |
| contents: write | |
| pull-requests: write | |
| statuses: write | |
| id-token: write | |
| "on": | |
| workflow_dispatch: | |
| inputs: | |
| force: | |
| description: Force generation of SDKs | |
| type: boolean | |
| default: false | |
| set_version: | |
| description: optionally set a specific SDK version | |
| type: string | |
| schedule: | |
| - cron: 0 0 * * * | |
| jobs: | |
| pre-generate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Python | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y python3 | |
| pip3 install pyyaml | |
| - name: Replace query time placeholders in YAML | |
| run: | | |
| python3 replace_env_in_yaml.py swov1/.speakeasy/tests.arazzo.yaml | |
| generate: | |
| needs: pre-generate | |
| uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 | |
| with: | |
| force: ${{ github.event.inputs.force }} | |
| mode: pr | |
| set_version: ${{ github.event.inputs.set_version }} | |
| signed_commits: true | |
| speakeasy_version: latest | |
| target: swov1 | |
| secrets: | |
| github_access_token: ${{ secrets.GITHUB_TOKEN }} | |
| speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }} |