Skip to content

Commit

Permalink
fix regex in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
AlterTobi committed Nov 2, 2023
1 parent cf26a16 commit 73ef372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _buildscripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ def run():
lic.link_to(tf) # create a hard link

# check if beta (issue, hotfix, feature)
ref = re.match('refs/heads/(\w+)(/[\w#\-]+)?',environ['GITHUB_REF'])
ref = re.match('refs/heads/(\w+)/([\w#\-\.\_]+)?',environ['GITHUB_REF'])
if ref:
if ref.group(1) == 'issue':
extra_version = '-beta'+environ['GITHUB_RUN_NUMBER']+'.issue' + ref.group(2)[2:]
extra_version = '-beta'+environ['GITHUB_RUN_NUMBER']+'.issue' + ref.group(2)[1:]
elif (ref.group(1) == 'feature')|(ref.group(1) == 'hotfix'):
extra_version = '-beta'+environ['GITHUB_RUN_NUMBER']+'.' + ref.group(1) + '.' + ref.group(2)[1:]
extra_version = '-beta'+environ['GITHUB_RUN_NUMBER']+'.' + ref.group(1) + '.' + ref.group(2)

# process js files
shortlist = []
Expand Down

0 comments on commit 73ef372

Please sign in to comment.