Skip to content

Commit 110966d

Browse files
authored
add today to version
1 parent 4753843 commit 110966d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/get_idf_ver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
import os
33
import re
44
import sys
5+
import datetime
56

67
def main(ver_file_path):
78
with open(ver_file_path, encoding="utf8") as fp:
89
pattern = r"set\(IDF_VERSION_(MAJOR|MINOR|PATCH) (\d+)\)"
910
matches = re.findall(pattern, fp.read())
1011
idf_version = str(".".join([match[1] for match in matches]))
12+
idf_version = idf_version + str(datetime.date.today())
1113
os.environ["IDF_VERSION"] = idf_version
1214
return idf_version
1315

0 commit comments

Comments
 (0)