From 2a3ac3598a0e8eac2af6162515d709eb82b69c9d Mon Sep 17 00:00:00 2001 From: ckoegel Date: Fri, 2 Oct 2026 14:46:40 -0400 Subject: [PATCH] DX-4048 Add Generate Script --- .github/workflows/deploy.yml | 12 +----------- generate.sh | 6 ++++++ 2 files changed, 7 insertions(+), 11 deletions(-) create mode 100644 generate.sh 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 . "$@"