Skip to content

Commit 62c5012

Browse files
committed
fix: let release workflow handle floating major tag, remove duplicate from script
1 parent eb78cb5 commit 62c5012

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

scripts/release.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def main() -> None:
105105

106106
if not push:
107107
print(f"\nDry run: would create and push tag {tag}")
108-
print(f" would update floating tag {major_tag} -> {tag}")
109108
print("Run with --push to execute.")
110109
return
111110

@@ -129,18 +128,9 @@ def main() -> None:
129128
print(f"\nERROR: git push failed (exit {result.returncode})", file=sys.stderr)
130129
sys.exit(1)
131130

132-
# Update floating major tag (e.g. v1 -> v1.0.4)
133-
print(f"Updating floating tag {major_tag} -> {tag}...", flush=True)
134-
subprocess.run(["git", "tag", "-f", major_tag, f"{tag}^{{}}"], cwd=REPO_ROOT)
135-
result = subprocess.run(
136-
["git", "push", "origin", major_tag, "--force"],
137-
cwd=REPO_ROOT,
138-
)
139-
if result.returncode != 0:
140-
print(f"\nWARNING: Failed to push floating tag {major_tag}", file=sys.stderr)
141-
142131
print(f"\nDone. Release workflow will run at:")
143132
print(f" https://github.com/auths-dev/auths-verify-github-action/actions")
133+
print(f" (the workflow also updates the floating {major_tag} tag automatically)")
144134

145135

146136
if __name__ == "__main__":

0 commit comments

Comments
 (0)