Skip to content

Commit 23aff94

Browse files
fix: update svu in CI (#233)
1 parent eb9c7fa commit 23aff94

File tree

2 files changed

+23
-63
lines changed

2 files changed

+23
-63
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,29 @@ jobs:
4242
4343
- id: tag
4444
run: |
45-
VERSION=$(svu next --tag-mode all-branches)
46-
PREV_VERSION=$(svu current --tag-mode all-branches)
47-
48-
if [ "$VERSION" = "$PREV_VERSION" ]; then
49-
echo "no new version detected"
50-
SAME_VERSION=true
51-
echo "SAME_VERSION=true" >> $GITHUB_OUTPUT
52-
else
53-
echo "new version detected"
54-
SAME_VERSION=false
55-
echo "SAME_VERSION=false" >> $GITHUB_OUTPUT
56-
57-
# Check if the tag already exists before creating it
58-
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
59-
echo "Tag v$VERSION already exists, skipping tag creation."
60-
else
61-
git tag "$VERSION"
62-
git push --tags
63-
fi
64-
fi
65-
66-
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
67-
echo "PREV_VERSION=$PREV_VERSION" >> $GITHUB_OUTPUT
45+
VERSION=$(svu next --tag.mode all)
46+
PREV_VERSION=$(svu current --tag.mode all)
47+
48+
if [ "$VERSION" = "$PREV_VERSION" ]; then
49+
echo "no new version detected"
50+
SAME_VERSION=true
51+
echo "SAME_VERSION=true" >> $GITHUB_OUTPUT
52+
else
53+
echo "new version detected"
54+
SAME_VERSION=false
55+
echo "SAME_VERSION=false" >> $GITHUB_OUTPUT
56+
57+
# Check if the tag already exists before creating it
58+
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
59+
echo "Tag v$VERSION already exists, skipping tag creation."
60+
else
61+
git tag "$VERSION"
62+
git push --tags
63+
fi
64+
fi
65+
66+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
67+
echo "PREV_VERSION=$PREV_VERSION" >> $GITHUB_OUTPUT
6868
6969
goreleaser:
7070
name: Release

Makefile

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)