Skip to content

Commit f64af36

Browse files
author
mamengqiu
committed
更新tag获取方式
1 parent e96bfa1 commit f64af36

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/.github-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ jobs:
5858
- name: Determine next tag
5959
id: tag
6060
run: |
61+
# 获取远程 tag 列表
62+
git fetch --tags
6163
latest_tag=$(git tag --sort=-v:refname | head -n 1)
6264
if [[ -z "$latest_tag" ]]; then
63-
next_tag="0.0.2"
65+
next_tag="0.0.1"
6466
else
6567
IFS='.' read -r major minor patch <<<"${latest_tag}"
6668
if [[ $patch -lt 9 ]]; then

0 commit comments

Comments
 (0)