From b1ab2bda5a35975382ebe0803f1e763e2995a9bb Mon Sep 17 00:00:00 2001 From: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com> Date: Wed, 6 Jul 2022 14:30:46 +0800 Subject: [PATCH] [Script] Auto release debug (#25098) * fix auto-ask-check bug * update comment * update comment * fix bug * Update main.py * Update main.py * Update main.py * fix changelog format for new service * fix check_pprint_name bug * Update main.py * fix check_pprint_name bug * Update main.py * Update main.py * test * test * change to azclibot * change to azure * fix push * test * update * update * test * test * reduction * update main * delete f * Update main.py * test * test * test * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * remove surplus code * Update PythonSdkLiveTest.yml for Azure Pipelines * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update main.py * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * Update PythonSdkLiveTest.yml for Azure Pipelines * fix bug * update * test * update code * update bot * update main bot * Update PythonSdkLiveTest.yml for Azure Pipelines * Update main.py * Update main.py * change branch for test * for test * for test * for test * add python_tag * restore branch * Update PythonSdkLiveTest.yml * update global_conf * Update auto_codegen.py * Update generate_sdk.py * Update generate_sdk.py * Update generate_sdk.py * Update main.py * Update main.py * Update PythonSdkLiveTest.yml for Azure Pipelines * uodate edit_sdk_setup * fix * test * test * fix bug * debug * fix bug * fix bug * Update main.py * move to ci check * Update main.py * for test * restore * update msg for failed version Co-authored-by: Yuchao Yan --- scripts/auto_release/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/auto_release/main.py b/scripts/auto_release/main.py index 7c4aff504b5a..b25f05c468ca 100644 --- a/scripts/auto_release/main.py +++ b/scripts/auto_release/main.py @@ -285,7 +285,8 @@ def calculate_next_version_proc(self, last_version: str): preview_tag = not self.tag_is_stable changelog = self.get_changelog() if changelog == '': - return '0.0.0' + msg = 'it should be stable' if self.tag_is_stable else 'it should be perview' + return f'0.0.0 ({msg})' preview_version = 'rc' in last_version or 'b' in last_version # | preview tag | stable tag # preview version(1.0.0rc1/1.0.0b1) | 1.0.0rc2(track1)/1.0.0b2(track2) | 1.0.0