OpenAPI Generator #1031
This file contains 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
# 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 | |
--artifact-id lilt-java-client | |
-p groupId=com.lilt.client | |
-p modelPackage=com.lilt.client.model | |
-p apiPackage=com.lilt.client.api | |
-p artifactVersion=2.2.0 | |
--package-name lilt | |
--git-host github.com | |
--git-user-id lilt | |
-p artifactDescription='LILT Java Client' | |
-p artifactUrl=https://github.com/lilt/lilt-java | |
--git-repo-id lilt-java | |
--skip-validate-spec | |
-o . | |
-t . | |
- 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 |