diff --git a/.github/workflows/composite/generate-sdk/action.yml b/.github/workflows/composite/generate-sdk/action.yml index feb442e8..414663a4 100644 --- a/.github/workflows/composite/generate-sdk/action.yml +++ b/.github/workflows/composite/generate-sdk/action.yml @@ -25,7 +25,7 @@ runs: 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 }} + run: openapi-generator-cli generate -i ${{ inputs.spec-link }} -c openapi-generator-config.yaml -o=${{ inputs.package-name }} --additional-properties packageName=${{ inputs.package-name }} --additional-properties packageVersionTest=1.2.3 - name: Upload Artifacts uses: actions/upload-artifact@v3 with: diff --git a/template/setup.mustache b/template/setup.mustache index bdd2a0cf..67d23157 100644 --- a/template/setup.mustache +++ b/template/setup.mustache @@ -2,7 +2,6 @@ {{>partial_header}} -from {{packageName}}.version import VERSION from setuptools import setup, find_packages # noqa: H301 # To install the library, run the following @@ -12,7 +11,7 @@ from setuptools import setup, find_packages # noqa: H301 # prerequisite: setuptools # http://pypi.python.org/pypi/setuptools NAME = "{{{projectName}}}" -VERSION = VERSION +VERSION = "{{{packageVersionTest}}}" PYTHON_REQUIRES = ">=3.7" {{#apiInfo}}