Skip to content

Commit

Permalink
update parse gh label array (#7759)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyW committed Jul 1, 2024
1 parent b675f74 commit 43addea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/ci/release_version_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# pylint: disable=line-too-long
import os
import re
import json
from packaging.version import parse

from azdev.utilities.path import get_cli_repo_path, get_ext_repo_paths
Expand All @@ -22,8 +23,8 @@
changed_module_list = os.environ.get('changed_module_list', "").split()
diff_code_file = os.environ.get('diff_code_file', "")
print("diff_code_file:", diff_code_file)
pr_label_list = os.environ.get('pr_label_list', "").split()
pr_label_list = [name.lower().strip().strip('"').strip("'") for name in pr_label_list]
pr_label_list = os.environ.get('pr_label_list', "")
pr_label_list = [name.lower().strip().strip('"').strip("'") for name in json.loads(pr_label_list)]

DEFAULT_VERSION = "0.0.0"
INIT_RELEASE_VERSION = "1.0.0b1"
Expand Down

0 comments on commit 43addea

Please sign in to comment.