We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7a0364 commit c2b5dceCopy full SHA for c2b5dce
.github/workflows/release.yml
@@ -37,16 +37,20 @@ jobs:
37
with:
38
go-version: stable
39
- name: Check new version using svu
40
+ id: svu
41
run: |
42
go install github.com/caarlos0/svu/v3@latest
43
NEXT_VERSION=$(svu next)
44
CURRENT_VERSION=$(svu current)
45
if [ "$NEXT_VERSION" == "$CURRENT_VERSION" ]; then
46
+ echo "new_version=false" >> $GITHUB_OUTPUT
47
exit 0
48
fi
49
+ echo "new_version=true" >> $GITHUB_OUTPUT
50
git tag "$NEXT_VERSION"
51
git push --tags
52
- name: Run GoReleaser
53
+ if: ${{steps.svu.outputs.new_version == true}}
54
uses: goreleaser/goreleaser-action@v6
55
56
# either 'goreleaser' (default) or 'goreleaser-pro'
0 commit comments