Skip to content
Snippets Groups Projects
Verified Commit d181064e authored by Janis Streib's avatar Janis Streib :owl:
Browse files

FIX: handle garbage in POST_VERSION

parent 19452d85
No related branches found
No related tags found
No related merge requests found
Pipeline #269135 failed
......@@ -15,6 +15,8 @@ for v in vers:
latest_previous_util_version = os.environ.get('LATEST_UTIL_VERSION', None)
latest_previous_api_version = os.environ.get('LATEST_API_VERSION', None)
post_version = os.environ.get('POST_NUM', None)
if not post_version.isdigit():
post_version = None
def get_gen_version():
ver = subprocess.run(["pip freeze | grep net_api_generator"], shell=True, text=True, check=True, capture_output=True).stdout
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment