Skip to content

Commit

Permalink
examples は存在しないので削除
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 28, 2025
1 parent 7d72cdb commit aacb644
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,13 @@ def write_version_file(filename: str, updated_content: list[str], dry_run: bool)
def git_operations(new_version: str, dry_run: bool) -> None:
if dry_run:
print("Dry run: Would execute the following git commands:")
print("- git commit -am '[canary] Update VERSION and examples/VERSION'")
print("- git commit -am '[canary] Update VERSION'")
print(f"- git tag {new_version}")
print("- git push")
print(f"- git push origin {new_version}")
else:
print("Executing: git commit -am 'Update VERSION and examples/VERSION'")
subprocess.run(
["git", "commit", "-am", "[canary] Update VERSION and examples/VERSION"], check=True
)
print("Executing: git commit -am 'Update VERSION'")
subprocess.run(["git", "commit", "-am", "[canary] Update VERSION"], check=True)

print(f"Executing: git tag {new_version}")
subprocess.run(["git", "tag", new_version], check=True)
Expand Down

0 comments on commit aacb644

Please sign in to comment.