Skip to content

Commit ad93ad8

Browse files
committed
modify:new get last tag name for mac
1 parent 2e408b0 commit ad93ad8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/macbuild.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ jobs:
5454
sudo mkdir -p /usr/local/lib
5555
./XEngine_LINEnv.sh -i 0
5656
57-
latest_tag=$(curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name)
57+
latest_tag=$(git ls-remote --tags --sort="v:refname" https://github.com/libxengine/libxengine.git | grep -oP "refs/tags/\K.*" | tail -n 1)
5858
echo -e $latest_tag
59-
curl -s https://api.github.com/repos/libxengine/libxengine/releases/latest | jq -r .tag_name
6059
6160
wget https://github.com/libxengine/libxengine/releases/download/$latest_tag/XEngine_Mac_Arm64.zip
6261
unzip ./XEngine_Mac_Arm64.zip -d ./XEngine_Mac_Arm64

0 commit comments

Comments
 (0)