Skip to content

Commit 41d983f

Browse files
committed
ci(comment-bump): get latest stable tag pipping
1 parent 04b5d40 commit 41d983f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/actions/analyze-release/action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ runs:
2121
- name: Get latest stable tag
2222
id: get_tag
2323
run: |
24-
TAG=$(git tag --sort=-creatordate | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
24+
TAGS=$(git tag --sort=-creatordate | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' || true)
25+
TAG=$(echo "$TAGS" | head -n 1)
2526
if [ -z "$TAG" ]; then
2627
echo "No stable tag found, assuming first release"
2728
echo "found_tag=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)