Skip to content

Commit

Permalink
rewrite release tag if not up-to-date (#751)
Browse files Browse the repository at this point in the history
Co-authored-by: CI Automation <infra@dfinity.org>
Co-authored-by: sa-github-api <138766536+sa-github-api@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 19, 2024
1 parent 35ae900 commit 7a1c772
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion release-controller/git_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def push_release_tags(repo: GitRepo, release: Release):
cwd=repo.dir,
)
if (
not subprocess.check_output(
subprocess.check_output(
[
"git",
"ls-remote",
Expand All @@ -298,13 +298,15 @@ def push_release_tags(repo: GitRepo, release: Release):
)
.decode("utf-8")
.strip()
.split(" ")[0] != v.version
):
subprocess.check_call(
[
"git",
"push",
"origin",
tag,
"-f",
],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
Expand Down

0 comments on commit 7a1c772

Please sign in to comment.