diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ae2cf7c8..6b9e6e46 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -51,18 +51,8 @@ jobs: - name: Checkout uses: actions/checkout@v7 - - name: Set OpenAPI Generator Version - run: | - OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json) - echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV - shell: bash - - name: Generate SDK with Updated Version - uses: Bandwidth/generate-sdk-action@v4.1.0 - with: - openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }} - language: python - additional-properties: --additional-properties=packageVersion=$RELEASE_VERSION + run: bash generate.sh --additional-properties=packageVersion=$RELEASE_VERSION - name: Install Packages and Test run: | diff --git a/generate.sh b/generate.sh new file mode 100644 index 00000000..501cf2f1 --- /dev/null +++ b/generate.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -euo pipefail +cd "$(dirname "${BASH_SOURCE[0]}")" + +npx --yes @openapitools/openapi-generator-cli generate \ + -i bandwidth.yml -g python -c openapi-config.yml -o . "$@"