Skip to content

Generate SDK - Main #25

Generate SDK - Main

Generate SDK - Main #25

name: Generate SDK - Main
on:
workflow_dispatch:
inputs:
name:
description: 'SDK Name'
required: true
version:
description: 'SDK Version'
required: true
endpoint_prefix:
description: 'Endpoint to prepend specs paths with'
required: true
type: string
specs_url:
description: 'URL to download API specs from'
required: true
type: string
production_release:
description: 'Release to production'
required: true
type: boolean
default: false
jobs:
download_specs:
uses: ./.github/workflows/generator-download-specs.yaml
with:
url: ${{ github.event.inputs.specs_url }}
transform_specs:
needs: [ download_specs ]
uses: ./.github/workflows/generator-transform-specs.yaml
with:
configurations: -th -te ${{ github.event.inputs.endpoint_prefix }} -tt ${{ github.event.inputs.name }}
generate:
needs: [ transform_specs ]
uses: ./.github/workflows/generator-generate.yaml
with:
name: ${{ github.event.inputs.name }}
version: ${{ github.event.inputs.version }}
publish_sources:
if: ${{ github.event.inputs.production_release == 'true' }}
needs: [ generate ]
uses: ./.github/workflows/generator-publish-sources.yaml
with:
name: ${{ github.event.inputs.name }}
version: ${{ github.event.inputs.version }}
publish_artifact:
needs: [ generate ]
uses: ./.github/workflows/generator-publish-artifact.yaml
secrets: inherit
with:
production_release: ${{ github.event.inputs.production_release == 'true' }}