Skip to content

Commit 7f659e6

Browse files
authored
remove temp file for changelog when timeout (#40676)
1 parent 1cee683 commit 7f659e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/azure-sdk-tools/packaging_tools/sdk_package.py

+7
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ def main(generate_input, generate_output):
5454
md_output = "change log generation was timeout!!!"
5555
except:
5656
md_output = "change log generation failed!!!"
57+
finally:
58+
for file in ["stable.json", "current.json"]:
59+
file_path = Path(sdk_folder, prefolder, package_name, file)
60+
if file_path.exists():
61+
os.remove(file_path)
62+
_LOGGER.info(f"Remove {file_path} which is temp file to generate changelog.")
63+
5764
_LOGGER.info(f"changelog generation cost time: {int(time.time() - changelog_generation_start_time)} seconds")
5865
package["changelog"] = {
5966
"content": md_output,

0 commit comments

Comments
 (0)