Skip to content

Commit

Permalink
fixed github-actions variables parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZergLev committed Nov 8, 2024
1 parent 71ab8da commit 9146de4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/switcher_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ def generate_version_switcher():
# Retrieve GitHub Actions variables and parse them
start_version = os.getenv("VERSION_SWITCHER_STARTING_TAG", default="v0.8.0")

blacklisted_tags = os.getenv("VERSION_SWITCHER_TAG_BLACKLIST", default=[])
blacklisted_tags = os.getenv("VERSION_SWITCHER_TAG_BLACKLIST", default="")
if blacklisted_tags = "":
blacklisted_tags = []
blacklisted_tags = blacklisted_tags.split(",")

whitelisted_tags = os.getenv("VERSION_SWITCHER_TAG_WHITELIST", default=[])
whitelisted_tags = os.getenv("VERSION_SWITCHER_TAG_WHITELIST", default="")
if whitelisted_tags = "":
whitelisted_tags = []
whitelisted_tags = whitelisted_tags.split(",")

# Retrieve and filter git tags
Expand Down

0 comments on commit 9146de4

Please sign in to comment.