OpenAPI Generator #1072
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:v4.3.1 | |
with: | |
args: >- | |
generate | |
-i https://developers.lilt.com/redocusaurus/plugin-redoc-0.yaml | |
-g javascript | |
-p projectName=lilt-node | |
-p projectVersion=${{ steps.latest.outputs.tag }} | |
-p usePromises=true | |
--git-user-id lilt | |
--git-repo-id lilt-node | |
--skip-validate-spec | |
-o . | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5.0.0 | |
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 |