Skip to content

Commit fb1720d

Browse files
committed
SWI-7144 Update Generator Version in Deploy WF
1 parent abd64cd commit fb1720d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,16 @@ jobs:
4949
node-version: 22
5050
registry-url: "https://registry.npmjs.org"
5151

52+
- name: Set OpenAPI Generator Version
53+
run: |
54+
OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json)
55+
echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV
56+
shell: bash
57+
5258
- name: Generate SDK with Updated Version
5359
uses: Bandwidth/[email protected]
5460
with:
55-
openapi-generator-version: 7.10.0
61+
openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }}
5662
language: typescript-axios
5763
additional-properties: --additional-properties=npmVersion=$PACKAGE_VERSION
5864

0 commit comments

Comments
 (0)