Skip to content

Commit 44f08bf

Browse files
authored
SWI-7144 Update Generator Version in Deploy WF (#231)
* SWI-7144 Update Generator Version in Deploy WF * generate with new version
1 parent aeaefb1 commit 44f08bf

File tree

7 files changed

+12
-7
lines changed

7 files changed

+12
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,16 @@ jobs:
4747
- name: Checkout
4848
uses: actions/checkout@v4
4949

50+
- name: Set OpenAPI Generator Version
51+
run: |
52+
OPENAPI_VERSION=$(jq .[\"generator-cli\"].version openapitools.json)
53+
echo "OPENAPI_GENERATOR_VERSION=$OPENAPI_VERSION" >> $GITHUB_ENV
54+
shell: bash
55+
5056
- name: Generate SDK with Updated Version
5157
uses: Bandwidth/[email protected]
5258
with:
53-
openapi-generator-version: 7.7.0
59+
openapi-generator-version: ${{ env.OPENAPI_GENERATOR_VERSION }}
5460
language: python
5561
additional-properties: --additional-properties=packageVersion=$RELEASE_VERSION
5662

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Bandwidth's Communication APIs
44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

66
- API version: 1.0.0
7-
- Package version: 1.0.0-dev
7+
- Package version: 1.0.0
88
- Generator version: 7.7.0
99
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1010
For more information, please visit [https://dev.bandwidth.com](https://dev.bandwidth.com)

bandwidth/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.0.0-dev"
18+
__version__ = "1.0.0"
1919

2020
# import apis into sdk package
2121
from bandwidth.api.calls_api import CallsApi

bandwidth/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def __init__(
8989
self.default_headers[header_name] = header_value
9090
self.cookie = cookie
9191
# Set default User-Agent.
92-
self.user_agent = 'OpenAPI-Generator/1.0.0-dev/python'
92+
self.user_agent = 'OpenAPI-Generator/1.0.0/python'
9393
self.client_side_validation = configuration.client_side_validation
9494

9595
def __enter__(self):

bandwidth/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def to_debug_report(self):
409409
"OS: {env}\n"\
410410
"Python Version: {pyversion}\n"\
411411
"Version of the API: 1.0.0\n"\
412-
"SDK Package Version: 1.0.0-dev".\
412+
"SDK Package Version: 1.0.0".\
413413
format(env=sys.platform, pyversion=sys.version)
414414

415415
def get_host_settings(self):

openapi-config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
projectName: bandwidth-sdk
22
packageName: bandwidth
3-
packageVersion: 15.0.0
43
packageUrl: 'https://dev.bandwidth.com/sdks/python'
54
disallowAdditionalPropertiesIfNotPresent: false
65
templateDir: custom_templates

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "bandwidth"
3-
version = "1.0.0-dev"
3+
version = "1.0.0"
44
description = "Bandwidth"
55
authors = ["Bandwidth <[email protected]>"]
66
license = "NoLicense"

0 commit comments

Comments
 (0)