Skip to content

chore: migrate lightweight jobs to gcp-runners-sm #614

chore: migrate lightweight jobs to gcp-runners-sm

chore: migrate lightweight jobs to gcp-runners-sm #614

Workflow file for this run

# This workflow will regenerate the client library API bindings based on the
# public OpenAPI spec.
name: OpenAPI Generator
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: WyriHaximus/github-action-get-previous-tag@0.2.0
id: latest
- name: Generate API Bindings
uses: docker://openapitools/openapi-generator-cli:v4.3.1
with:
args: >-
generate
-i https://github.com/lilt/mintlify-docs/blob/main/api-reference/openapi-bundled.yaml
-g python
-p packageName=lilt
-p projectName=lilt-python
-p packageUrl=https://github.com/lilt/lilt-python
-p packageVersion=${{ github.event.client_payload.version }}
--git-user-id lilt
--git-repo-id lilt-python
--http-user-agent Lilt_Client_Library-Python
--skip-validate-spec
-o .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6.1.0
with:
token: ${{ secrets.GHA_REPO_DISPATCH_TOKEN }}
commit-message: Regenerates API Bindings
title: "OpenAPI: Regenerates API Bindings"
body: |
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: openapi-bindings