Skip to content

OpenAPI Generator

OpenAPI Generator #837

Workflow file for this run

# This workflow will regenerate the client library API bindings based on the
# public OpenAPI spec.
name: OpenAPI Generator
on:
workflow_dispatch:
inputs: null
schedule:
- cron: "0 0 * * *"
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:v5.0.1
with:
args: >-
generate
-i https://lilt.com/docs/api/public-http-api-swagger.yaml
-g java
-p modelPackage=com.lilt.client.model
-p apiPackage=com.lilt.client.api
-p artifactVersion=${{ steps.latest.outputs.tag }}
--package-name lilt
--git-host github.com
--git-user-id lilt
--git-repo-id lilt-java
--skip-validate-spec
-o .
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.8.2
with:
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