Skip to content

Commit

Permalink
chore: fix svu install in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
acaloiaro committed Dec 22, 2024
1 parent 0ef3446 commit a002d3f
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,11 @@ jobs:
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
- name: Bump version and push tag
shell: bash
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
go install github.com/caarlos0/svu@latest
OLD_TAG=$(svu current --strip-prefix)
NEW_TAG=$(svu next --strip-prefix)
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
git commit -m "bump release version" --allow-empty
git tag v$NEW_TAG
git tag $NEW_TAG
git push
git push --tags
uses: charlesthomas/[email protected]+2.2.0
with:
pushTag: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
Expand Down

0 comments on commit a002d3f

Please sign in to comment.