-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.91 KB
/
openapi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This workflow will regenerate the client library API bindings based on the
# public OpenAPI spec.
name: OpenAPI Generator
on:
workflow_dispatch:
repository_dispatch:
types: [API-DocumentationV3-Deployment]
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://developers.lilt.com/redocusaurus/plugin-redoc-0.yaml
-p apiPackage=com.lilt.client.api
-p artifactId=lilt-java
-p artifactUrl=https://github.com/lilt/lilt-java
-p developerEmail=nicholas.chiu@lilt.com
-p developerName="Nicholas Chiu"
-p developerOrganization="Lilt"
-p developerOrganizationUrl=https://lilt.com
-p groupId=com.lilt.client
-g java
-p licenseName="Lilt Client Library License"
-p licenseUrl=license.md
-p modelPackage=com.lilt.client.model
-p packageVersion=${{ github.event.client_payload.version }}
--package-name lilt
--git-host github.com
--git-user-id lilt
--git-repo-id lilt-java
--http-user-agent Lilt_Client_Library-Java
--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