From e75b0cc29d2d1a6b7f0568e48ca81b29a10669de Mon Sep 17 00:00:00 2001 From: rito528 <39003544+rito528@users.noreply.github.com> Date: Sat, 16 Mar 2024 23:25:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=82=BD=E3=83=BC=E3=83=88=E3=82=92?= =?UTF-8?q?=E3=81=84=E3=82=8C=E3=82=8B=E3=81=AE=E3=82=92=E5=BF=98=E3=82=8C?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mcserver--debug-s1/seichiassist-downloader.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mcserver--debug-s1/seichiassist-downloader.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mcserver--debug-s1/seichiassist-downloader.yaml index 0a4afb1b5..5ebd67c21 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mcserver--debug-s1/seichiassist-downloader.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/seichi-debug-minecraft/mcserver--debug-s1/seichiassist-downloader.yaml @@ -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')