Skip to content

Commit a7fb351

Browse files
committed
Revert "Update the version to 0.6.1"
This reverts commit c55b7c3.
1 parent c55b7c3 commit a7fb351

2 files changed

Lines changed: 25 additions & 8 deletions

File tree

.github/scripts/release.py

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@
77

88
def run_command(command, check=True):
99
print(f"Executing: {' '.join(command)}")
10-
result = subprocess.run(command, capture_output=True, text=True, check=check)
11-
if result.stdout:
12-
print(result.stdout)
13-
if result.stderr:
14-
print(result.stderr, file=sys.stderr)
15-
return result.stdout.strip()
10+
try:
11+
result = subprocess.run(
12+
command, capture_output=True, text=True, check=check, encoding="utf-8"
13+
)
14+
if result.stdout:
15+
print(result.stdout)
16+
if result.stderr:
17+
print(result.stderr, file=sys.stderr)
18+
return result.stdout.strip()
19+
except subprocess.CalledProcessError as e:
20+
print("Command failed with a non-zero exit code.", file=sys.stderr)
21+
if e.stdout:
22+
print("--- STDOUT ---", file=sys.stderr)
23+
print(e.stdout, file=sys.stderr)
24+
if e.stderr:
25+
print("--- STDERR ---", file=sys.stderr)
26+
print(e.stderr, file=sys.stderr)
27+
raise
1628

1729

1830
def main():
@@ -73,8 +85,13 @@ def main():
7385
else:
7486
print("Skipped pushing the commit for updating the next version")
7587

88+
print("\n--- Start Debugging Info ---")
89+
run_command(["git", "config", "--list"])
90+
run_command(["git", "remote", "-v"])
91+
print("--- End Debugging Info ---\n")
92+
7693
print("Pushing tag to remote")
77-
run_command(["git", "push", "origin", tag])
94+
run_command(["git", "push", "--verbose", "origin", tag])
7895

7996
print("\nRelease process completed successfully!")
8097
print(f"Tagged: {tag}")

centraldogma/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.6.1.dev"
1+
__version__ = "0.6.0.dev"

0 commit comments

Comments
 (0)