Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

58 Commits

Repository files navigation

setup-openapi

versiontestLicense: MIT

🟢 Set up GitHub Actions workflow with OpenAPI Generator CLI.

This action installs Java, downloads the OpenAPI Generator CLI, caches it by version, and exposes the binary.

Quick Start

# .github/workflows/openapi.ymlon: pushjobs:
openapi:
runs-on: ubuntu-lateststeps:
- name: Setup OpenAPIuses: remarkablemark/setup-openapi@v1
- name: Generate Ruby Clientrun: openapi-generator-cli generate -i petstore.yaml -g ruby -o /tmp/test/

Usage

Install OpenAPI Generator CLI tool:

- uses: remarkablemark/setup-openapi@v1

Generate a Ruby client from an OpenAPI spec:

- run: openapi-generator-cli generate -i petstore.yaml -g ruby -o /tmp/test/

See action.yml

Inputs

version

Optional: The OpenAPI Generator CLI version. Defaults to 7.24.0.

- uses: remarkablemark/setup-openapi@v1with:
version: 7.24.0

name

Optional: The OpenAPI Generator CLI binary name. Defaults to openapi-generator-cli.

- uses: remarkablemark/setup-openapi@v1with:
name: openapi-generator-cli

License

MIT

Releases

Sponsor this project

Packages

Used by

Contributors

Languages