Skip to content

Commit

Permalink
Merge pull request #65 from NexaAI/zack-dev
Browse files Browse the repository at this point in the history
update tag extraction logic
  • Loading branch information
zhiyuan8 authored Aug 30, 2024
2 parents 986806d + 736edaf commit 3c4abd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/releases-to-pep-503.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ releases=$(curl -s https://api.github.com/repos/NexaAI/${repo_name}/releases | j
# pattern example 2 : 0.1.0
# pattern example 3 : 0.1.0-cu121
# pattern example 4 : v0.0.0.1
pattern=${2:-"^[v]?[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?$"}
# pattern example 5 : v0.0.8.1
pattern=${2:-"^[v]?[0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?(-[a-zA-Z0-9]+)?$"}

# Filter releases by pattern
releases=$(echo $releases | tr ' ' '\n' | grep -E $pattern)
Expand Down

0 comments on commit 3c4abd9

Please sign in to comment.