Skip to content

Commit

Permalink
Fix CI parse string
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Dec 20, 2020
1 parent f404fcb commit 3075ac1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/scripts/parse_ref.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ def parse_ref(current_ref):
current_ref: str
The github reference string.
"""
if not current_ref.startswith("ref/tags/"):
if not current_ref.startswith("refs/tags/"):
raise Exception(f"Invalid ref `{current_ref}`!")

tag_name = current_ref.replace("ref/tags/", "")
if not tag_name.startswith("v"):
raise Exception(f"Invalid tag `{tag_name}`!")

tag_name = current_ref.replace("refs/tags/", "")
print(f"::set-env name=RELEASE_TAG::{tag_name}")


Expand Down

0 comments on commit 3075ac1

Please sign in to comment.