Skip to content

Commit a350738

Browse files
authored
Dpg quick start tools update (Azure#26502)
* toml file * update template
1 parent 4ecc38d commit a350738

File tree

1 file changed

+8
-0
lines changed
  • scripts/quickstart_tooling_dpg

1 file changed

+8
-0
lines changed

scripts/quickstart_tooling_dpg/main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def generate_swagger_readme(work_path: str, env: Environment, **kwargs: Any) ->
7676
return swagger_readme
7777

7878

79+
def generate_toml_file(target_path: Path) -> None:
80+
with open(target_path / "sdk_packaging.toml", "w") as file_out:
81+
file_out.write("[packaging]\nauto_update = false\n")
82+
83+
7984
def get_autorest_version() -> str:
8085
with open(_CONFIG_FILE, 'r') as file_in:
8186
config = json.load(file_in)
@@ -114,6 +119,9 @@ def build_package(**kwargs) -> None:
114119
# generate sample framework
115120
generate_test_sample(_TEMPLATE_SAMPLES, work_path / Path('samples'), **kwargs)
116121

122+
# generate .toml file to avoid udpate_pr in CI
123+
generate_toml_file(work_path)
124+
117125
_LOGGER.info("Build complete: %s", package_name)
118126

119127

0 commit comments

Comments
 (0)