Skip to content

Commit 5498fe0

Browse files
committed
ci(release): 修复总是获取旧 tag 问题
1 parent 0984698 commit 5498fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: get_tags
2222
run: |
2323
git fetch --prune --unshallow
24-
tags=($(git tag -l --sort=-version:refname))
24+
tags=($(git tag -l '@skiyee/*@v*' --sort=-version:refname))
2525
current_tag=${tags[0]}
2626
previous_tag=${tags[1]}
2727
echo "previous_tag=$previous_tag" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)