diff --git a/.github/workflows/composite/generate-sdk/action.yml b/.github/workflows/composite/generate-sdk/action.yml index e7664536..0a085612 100644 --- a/.github/workflows/composite/generate-sdk/action.yml +++ b/.github/workflows/composite/generate-sdk/action.yml @@ -20,9 +20,6 @@ runs: - name: Install openapi-generator-cli shell: bash run: npm install -g @openapitools/openapi-generator-cli - - name: Download spec files - shell: bash - run: wget ${{ inputs.spec-link }} -O ./${{ inputs.package-name }}/${{ inputs.package-name }}.spec.yaml - name: Cleanup existing files shell: bash run: | @@ -37,6 +34,9 @@ runs: echo "Moving version.py file back in..." mv ./version.py ./${{ inputs.package-name }}/${{ inputs.package-name }}/version.py + - name: Download spec files + shell: bash + run: wget ${{ inputs.spec-link }} -O ./${{ inputs.package-name }}/${{ inputs.package-name }}.spec.yaml - name: Generate API shell: bash run: openapi-generator-cli generate -i ${{ inputs.spec-link }} -c openapi-generator-config.yaml -o=${{ inputs.package-name }} --additional-properties packageName=${{ inputs.package-name }}