Skip to content

Commit

Permalink
block illegal version (Azure#7905)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyW authored Aug 23, 2024
1 parent 3724341 commit 6da95eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/ci/release_version_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ def gen_version_comment_message(mod, mod_update_info, mod_message):
if mod_update_info.get("version_diff", None):
diff_version = parse(mod_update_info['version_diff'])
if diff_version != bot_version:
if diff_version < bot_version:
block_pr = 1
block_pr = 1
mod_message.append(" - :warning: Please update `VERSION` to be `{0}` in `src/{1}/setup.py`".format(mod_update_info.get("version", "-"), mod))
else:
mod_message.append(" - Update `VERSION` to `{0}` in `src/{1}/setup.py`".format(mod_update_info.get("version", "-"), mod))
Expand Down

0 comments on commit 6da95eb

Please sign in to comment.