-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (57 loc) · 1.79 KB
/
generator-main.yaml
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
48
49
50
51
52
53
54
55
56
57
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' }}
draft_release:
if: ${{ github.event.inputs.production_release == 'true' }}
needs: [ generate ]
secrets: inherit
uses: ./.github/workflows/generator-draft-release.yaml