Skip to content

Commit

Permalink
Update update-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RinLit-233-shiroko authored Jan 12, 2025
1 parent 7f18938 commit 7485cee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
workflow_dispatch:
repository_dispatch:
types: [update-version] # 更新版本

jobs:
update-version:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -32,8 +33,8 @@ jobs:
# 获取 Beta 版本号
VERSION_BETA=$(curl -s "$API_URL" | jq -r '[.[] | select(.prerelease == true)][0].tag_name')
if [ -z "$VERSION_BETA" ]; then
VERSION_BETA="none"
if [ -z "$VERSION_BETA" ] || [ "$VERSION_BETA" = "null" ]; then
VERSION_BETA="$VERSION_RELEASE"
fi
echo "Latest release version: $VERSION_RELEASE"
Expand Down

0 comments on commit 7485cee

Please sign in to comment.