Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Jan 25, 2025
1 parent ebb145d commit 7d7cc06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def usage():

def run_command(command: str):
if os.system(command):
print(f'\n\nКоманда "{command}" завершилась с ошибкой.')
print(f'\n\nCommand "{command}" failed.')
os.system("git reset --hard")
sys.exit(1)

Expand All @@ -46,13 +46,13 @@ def run_command(command: str):
case "build":
version = version.bump_build()
case arg:
print(f"Неизвестный аргумент `{arg}`")
print(f"Unknown argument `{arg}`")
usage()
sys.exit(1)


print(f"{old_version} -> {version}")
choice = input("Сделать релиз? [N/y] ").lower()
choice = input("Create release? [N/y] ").lower()

if choice != "y":
sys.exit(0)
Expand Down Expand Up @@ -113,5 +113,5 @@ def run_command(command: str):
)
run_command("rm release_body.md")

print("\n\nРелиз успешно создан и опубликован.\n\n")
print("\n\nRelease successfully created and published.\n\n")
run_command("git fetch --tags")

0 comments on commit 7d7cc06

Please sign in to comment.