Skip to content

Commit

Permalink
Update self-serve generate action
Browse files Browse the repository at this point in the history
  • Loading branch information
anssari1 committed Aug 22, 2024
1 parent 5aa2197 commit d603f11
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/selfserve-generate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,19 @@ jobs:
with:
name: ${{ inputs.specs_key }}

- name: Build generator post-processor
working-directory: sdk-repo/generator/openapi/src/main/resources/post-processor
run: npm ci && npm run clean && npm run build

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'

- name: Generate Product SDK
env:
KOTLIN_POST_PROCESS_FILE: "npm run --prefix sdk-repo/generator/openapi/src/main/resources/post-processor process"
run: |
mvn -f sdk-repo/generator/openapi clean install exec:java "-Dnamespace=${{ inputs.name }}" -DsdkVersion=${{ inputs.version }} "-Dspec=./${{ inputs.specs_key }}.yaml" -DtemplatesDir=./${{ inputs.templates }}
Expand Down

0 comments on commit d603f11

Please sign in to comment.