Skip to content

Commit

Permalink
fix: ソートをいれるのを忘れていたので追加
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Mar 16, 2024
1 parent 61641be commit e75b0cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
RELEASES=$(curl -s "https://api.github.com/repos/$owner/$repo/releases")
LATEST=$(echo $RELEASES | jq -r '.[] | select(.tag_name | startswith("v")) | .tag_name' | tail -n 1)
LATEST=$(echo $RELEASES | jq -r '.[] | select(.tag_name | startswith("v")) | .tag_name' | sort -V | tail -n 1)
DOWNLOAD_URL=$(echo $RELEASES | jq -r --arg LATEST "$LATEST" '.[] | select(.tag_name == $LATEST) | .assets[0].browser_download_url')
Expand Down

0 comments on commit e75b0cc

Please sign in to comment.