Update release.yml
This commit is contained in:
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -20,7 +20,6 @@ jobs:
|
|||||||
- name: Get next version
|
- name: Get next version
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
# 获取已有最新 tag,没有则默认 v2.0
|
|
||||||
latest_tag=$(git tag --list "v*" | sort -V | tail -n1)
|
latest_tag=$(git tag --list "v*" | sort -V | tail -n1)
|
||||||
if [ -z "$latest_tag" ]; then
|
if [ -z "$latest_tag" ]; then
|
||||||
next_tag="v2.0"
|
next_tag="v2.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user