Change the update_version script to not add +1 to the minor version of TF for
nightly builds. PiperOrigin-RevId: 318848771 Change-Id: Idb9cd031564a18f408fc927de5025a457fa79f3a
This commit is contained in:
parent
05d6e585d7
commit
e085901e2c
@ -294,10 +294,8 @@ def main():
|
|||||||
new_version = Version.parse_from_string(args.version, NIGHTLY_VERSION)
|
new_version = Version.parse_from_string(args.version, NIGHTLY_VERSION)
|
||||||
new_version.set_identifier_string("-dev" + time.strftime("%Y%m%d"))
|
new_version.set_identifier_string("-dev" + time.strftime("%Y%m%d"))
|
||||||
else:
|
else:
|
||||||
# Dev minor version is one ahead of official.
|
|
||||||
nightly_minor_ver = int(old_version.minor) + 1
|
|
||||||
new_version = Version(old_version.major,
|
new_version = Version(old_version.major,
|
||||||
str(nightly_minor_ver),
|
str(old_version.minor),
|
||||||
old_version.patch,
|
old_version.patch,
|
||||||
"-dev" + time.strftime("%Y%m%d"),
|
"-dev" + time.strftime("%Y%m%d"),
|
||||||
NIGHTLY_VERSION)
|
NIGHTLY_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user