|
| 1 | +name: Regenerate OpenAPI Connector |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + openapi-url: |
| 7 | + description: "URL of the OpenAPI JSON" |
| 8 | + required: false |
| 9 | + type: string |
| 10 | + flatten-openapi: |
| 11 | + description: "Enable OpenAPI Flattening" |
| 12 | + required: false |
| 13 | + type: boolean |
| 14 | + default: true |
| 15 | + additional-flatten-flags: |
| 16 | + description: "Additional flags for OpenAPI Flattening" |
| 17 | + required: false |
| 18 | + type: string |
| 19 | + default: "" |
| 20 | + align-openapi: |
| 21 | + description: "Enable OpenAPI Alignment" |
| 22 | + required: false |
| 23 | + type: boolean |
| 24 | + default: true |
| 25 | + additional-align-flags: |
| 26 | + description: "Additional flags for OpenAPI Alignment" |
| 27 | + required: false |
| 28 | + type: string |
| 29 | + default: "" |
| 30 | + additional-generation-flags: |
| 31 | + description: "Additional flags for OpenAPI Generation" |
| 32 | + required: false |
| 33 | + type: string |
| 34 | + default: "" |
| 35 | + distribution-zip: |
| 36 | + description: "Distribution of the Ballerina version to be used" |
| 37 | + required: false |
| 38 | + type: string |
| 39 | + default: "" |
| 40 | + auto-merge: |
| 41 | + description: "Enable auto-merge of the PR" |
| 42 | + required: false |
| 43 | + type: boolean |
| 44 | + default: true |
| 45 | + ballerina-version: |
| 46 | + description: "Ballerina Language Version" |
| 47 | + required: false |
| 48 | + type: string |
| 49 | + default: "" |
| 50 | + |
| 51 | +jobs: |
| 52 | + call_workflow: |
| 53 | + name: Run Regenerate Connector Workflow |
| 54 | + if: ${{ github.repository_owner == 'ballerina-platform' }} |
| 55 | + uses: ballerina-platform/ballerina-library/.github/workflows/regenerate-connector-template.yml@main |
| 56 | + secrets: inherit |
| 57 | + with: |
| 58 | + openapi-url: ${{ inputs.openapi-url }} |
| 59 | + flatten-openapi: ${{ inputs.flatten-openapi }} |
| 60 | + additional-flatten-flags: ${{ inputs.additional-flatten-flags }} |
| 61 | + align-openapi: ${{ inputs.align-openapi }} |
| 62 | + additional-align-flags: ${{ inputs.additional-align-flags }} |
| 63 | + additional-generation-flags: ${{ inputs.additional-generation-flags }} |
| 64 | + distribution-zip: ${{ inputs.distribution-zip }} |
| 65 | + auto-merge: ${{ inputs.auto-merge }} |
| 66 | + ballerina-version: ${{ inputs.ballerina-version }} |
0 commit comments