Skip to content

Commit 9bb1863

Browse files
authored
[Pipeline] add parameter to skip changelog generation if needed (#42220)
* add parameter to skip changelog generation if needed * update
1 parent 5ce5f9a commit 9bb1863

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,10 @@ def main(generate_input, generate_output):
368368

369369
changelog_generation_start_time = time.time()
370370
try:
371-
md_output = execute_func_with_timeout(change_log_func)
371+
if data.get("enableChangelog", True):
372+
md_output = execute_func_with_timeout(change_log_func)
373+
else:
374+
md_output = "skip changelog generation"
372375
except multiprocessing.TimeoutError:
373376
md_output = "change log generation was timeout!!! You need to write it manually!!!"
374377
except:

0 commit comments

Comments
 (0)