diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4221058..75007e5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -54,18 +54,8 @@ jobs: with: dotnet-version: "10.0.x" - - 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: csharp - additional-properties: --additional-properties=packageVersion=$RELEASE_VERSION + run: bash generate.sh --additional-properties=packageVersion=$RELEASE_VERSION - name: Run Unit Tests run: | diff --git a/generate.sh b/generate.sh new file mode 100644 index 0000000..5f238ff --- /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 csharp -c openapi-config.yml -o . "$@"