Skip to content

Commit

Permalink
apply release name fix in release version generator script
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMiao1 committed Apr 16, 2023
1 parent 8fada73 commit 3a092e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/generate_release_version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import subprocess
import datetime
import re
import subprocess

tags_process = subprocess.Popen(["git", "for-each-ref", "--sort=creatordate", "--format", "'%(refname) %(taggerdate)'", "refs/tags"], stdout=subprocess.PIPE)
tags = ""
Expand All @@ -17,6 +18,6 @@
continue

time = datetime.datetime.utcnow().strftime("%Y%m%d%H%M%S")
tag = re.sub(r"\+\d+", "", tag)
print(f"{tag}+{time}")
break

4 changes: 3 additions & 1 deletion generate_next_release.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import subprocess
import datetime
import re
import subprocess

tags_process = subprocess.Popen(["git", "for-each-ref", "--sort=creatordate", "--format", "'%(refname) %(taggerdate)'", "refs/tags"], stdout=subprocess.PIPE)
tags = ""
Expand All @@ -17,5 +18,6 @@
continue

time = datetime.datetime.utcnow().strftime("%Y%m%d%H%M%S")
tag = re.sub(r"\+\d+", "", tag)
print(f"{tag}+{time}")
break

0 comments on commit 3a092e6

Please sign in to comment.