Skip to content

Commit c2b5dce

Browse files
committed
ci(project): 👷 update ci checks
1 parent f7a0364 commit c2b5dce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,20 @@ jobs:
3737
with:
3838
go-version: stable
3939
- name: Check new version using svu
40+
id: svu
4041
run: |
4142
go install github.com/caarlos0/svu/v3@latest
4243
NEXT_VERSION=$(svu next)
4344
CURRENT_VERSION=$(svu current)
4445
if [ "$NEXT_VERSION" == "$CURRENT_VERSION" ]; then
46+
echo "new_version=false" >> $GITHUB_OUTPUT
4547
exit 0
4648
fi
49+
echo "new_version=true" >> $GITHUB_OUTPUT
4750
git tag "$NEXT_VERSION"
4851
git push --tags
4952
- name: Run GoReleaser
53+
if: ${{steps.svu.outputs.new_version == true}}
5054
uses: goreleaser/goreleaser-action@v6
5155
with:
5256
# either 'goreleaser' (default) or 'goreleaser-pro'

0 commit comments

Comments
 (0)