-
Notifications
You must be signed in to change notification settings - Fork 16
/
action.yml
47 lines (45 loc) · 1.82 KB
/
action.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
name: "Generate Client Library w/ the OpenAPITools Generator"
description: "Generates a client library from an openapifile using OpenAPITools' generator"
branding:
icon: target
color: green
inputs:
generator:
description: The name of the generator (i.e. the language to generate the client library in) to use e.g. "typescript-angular"
required: true
docker-repository:
description: The Docker repository uses as source for openapitools/openapi-generator-cli image.
required: false
default: "docker.io"
docker-image:
description: The Docker image used by the generator.
required: false
default: "openapitools/openapi-generator-cli"
generator-tag:
description: The Docker tag of the openapitools/openapi-generator-cli image to use.
required: false
default: latest
openapi-file:
description: The path to the OpenAPI document to generate a client library for
required: false
default: openapi.json
openapi-url:
description: If set, the OpenAPI document will be loaded from this URL instead of openapi-file.
required: false
default: UNSET
config-file:
description: The path to the config file to be passed along to the OpenAPITools generator
required: false
default: UNSET
template-dir:
description: The path to the folder containing the template files
required: false
default: UNSET
command-args:
description: Optional, additional arguments to pass through to the generator.
required: false
runs:
using: composite
steps:
- shell: bash
run: python ${{ github.action_path }}/entrypoint.py ${{ inputs.generator }} ${{ inputs.docker-repository }} ${{ inputs.docker-image }} ${{ inputs.generator-tag }} ${{ inputs.openapi-file }} ${{ inputs.openapi-url }} ${{ inputs.config-file }} ${{ inputs.template-dir }} ${{ inputs.command-args}}